Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
nkholski committed May 26, 2018
1 parent 47188f3 commit f74a0cb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
1 change: 0 additions & 1 deletion dist/AnimatedTiles.min.js

This file was deleted.

12 changes: 9 additions & 3 deletions dist/AnimatedTiles.js → dist/animatedTiles.js
Expand Up @@ -2,11 +2,11 @@
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("GridPhysics", [], factory);
define([], factory);
else if(typeof exports === 'object')
exports["GridPhysics"] = factory();
exports["animatedTiles"] = factory();
else
root["GridPhysics"] = factory();
root["animatedTiles"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down Expand Up @@ -81,6 +81,12 @@ return /******/ (function(modules) { // webpackBootstrap
/************************************************************************/
/******/ ([
/* 0 */
/*!*****************!*\
!*** ./main.js ***!
\*****************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down
1 change: 1 addition & 0 deletions dist/animatedTiles.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "phaser-animated-tiles",
"version": "2.0.0",
"version": "2.0.1",
"description": "Phaser 3 Animated Tiles Plugin",
"main": "src/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/demo/demo.js
Expand Up @@ -7,7 +7,7 @@ export default class Demo extends Phaser.Scene {
this.load.tilemapTiledJSON('map2', './assets/map2.json');
this.load.image('tiles', './assets/tiles.png');
this.load.image('super-mario-16bit', './assets/super-mario-16bit.png');
this.load.scenePlugin('animatedTiles', 'animatedTiles.js'); //, 'animatedTiles', 'animatedTiles');
this.load.scenePlugin('animatedTiles', 'AnimatedTiles.js'); //, 'animatedTiles', 'animatedTiles');
}

create() {
Expand Down
16 changes: 12 additions & 4 deletions webpack.build.config.js
Expand Up @@ -9,16 +9,24 @@ module.exports = {
watch: false,
context: `${__dirname}/src/plugin/`,
entry: {
AnimatedTiles: './main.js',
'AnimatedTiles.min': './main.js'
animatedTiles: './main.js',
'animatedTiles.min': './main.js'
},

output: {
/*output: {
path: `${__dirname}/dist/`,
filename: '[name].js',
library: 'GridPhysics',
library: 'animatedTiles',
libraryTarget: 'umd',
umdNamedDefine: true
},*/
output: {
pathinfo: true,
path: path.resolve(__dirname, 'dev'),
path: `${__dirname}/dist/`,
library: '[name]',
libraryTarget: 'umd',
filename: '[name].js'
},

plugins: [
Expand Down

0 comments on commit f74a0cb

Please sign in to comment.