diff --git a/.babelrc b/.babelrc index d1fcd91..402a0a4 100644 --- a/.babelrc +++ b/.babelrc @@ -3,6 +3,7 @@ ["es2015", { "loose": true }], ], plugins: [ - "static-fs" + "static-fs", + "version-inline" ] } \ No newline at end of file diff --git a/.babelrc b/.babelrc index d1fcd91..402a0a4 100644 --- a/.babelrc +++ b/.babelrc @@ -3,6 +3,7 @@ ["es2015", { "loose": true }], ], plugins: [ - "static-fs" + "static-fs", + "version-inline" ] } \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index e0e521a..cb6c09d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,8 @@ "node": true }, "globals": { - "global": false + "global": false, + "__VERSION__": false }, "parserOptions": { "ecmaVersion": 6, diff --git a/.babelrc b/.babelrc index d1fcd91..402a0a4 100644 --- a/.babelrc +++ b/.babelrc @@ -3,6 +3,7 @@ ["es2015", { "loose": true }], ], plugins: [ - "static-fs" + "static-fs", + "version-inline" ] } \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index e0e521a..cb6c09d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,8 @@ "node": true }, "globals": { - "global": false + "global": false, + "__VERSION__": false }, "parserOptions": { "ecmaVersion": 6, diff --git a/package.json b/package.json index efb57e9..24b67f1 100644 --- a/package.json +++ b/package.json @@ -57,12 +57,12 @@ "ismobilejs": "^0.4.0", "object-assign": "^4.0.1", "pixi-gl-core": "^1.0.3", - "resource-loader": "^1.8.0", - "browserify-versionify": "^1.0.6" + "resource-loader": "^1.8.0" }, "devDependencies": { "babel-cli": "^6.18.0", "babel-plugin-static-fs": "^1.1.0", + "babel-plugin-version-inline": "^1.0.0", "babel-preset-es2015": "^6.14.0", "babelify": "^7.3.0", "del": "^2.2.0", @@ -82,8 +82,7 @@ }, "browserify": { "transform": [ - "babelify", - "browserify-versionify" + "babelify" ] } } diff --git a/.babelrc b/.babelrc index d1fcd91..402a0a4 100644 --- a/.babelrc +++ b/.babelrc @@ -3,6 +3,7 @@ ["es2015", { "loose": true }], ], plugins: [ - "static-fs" + "static-fs", + "version-inline" ] } \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index e0e521a..cb6c09d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,8 @@ "node": true }, "globals": { - "global": false + "global": false, + "__VERSION__": false }, "parserOptions": { "ecmaVersion": 6, diff --git a/package.json b/package.json index efb57e9..24b67f1 100644 --- a/package.json +++ b/package.json @@ -57,12 +57,12 @@ "ismobilejs": "^0.4.0", "object-assign": "^4.0.1", "pixi-gl-core": "^1.0.3", - "resource-loader": "^1.8.0", - "browserify-versionify": "^1.0.6" + "resource-loader": "^1.8.0" }, "devDependencies": { "babel-cli": "^6.18.0", "babel-plugin-static-fs": "^1.1.0", + "babel-plugin-version-inline": "^1.0.0", "babel-preset-es2015": "^6.14.0", "babelify": "^7.3.0", "del": "^2.2.0", @@ -82,8 +82,7 @@ }, "browserify": { "transform": [ - "babelify", - "browserify-versionify" + "babelify" ] } } diff --git a/src/core/const.js b/src/core/const.js index 37a9741..4bd6fcf 100644 --- a/src/core/const.js +++ b/src/core/const.js @@ -8,7 +8,7 @@ * @memberof PIXI * @type {string} */ -export const VERSION = '__VERSION__'; +export const VERSION = __VERSION__; /** * Two Pi.