Skip to content
Permalink
Browse files

Merge pull request #25 from gameeapp/no-minified-gameejs-build

No minified gameejs build
  • Loading branch information...
hadikcz committed Jun 20, 2019
2 parents 0c9a149 + 00f7535 commit 30e143e00931e3af743f84b13112b1115e081cfe
Showing with 2,487 additions and 6 deletions.
  1. +2 −1 .npmignore
  2. +7 −3 config/webpack.prod.js
  3. +2,475 −0 gamee/dist/gamee-js.js
  4. +1 −0 gamee/dist/gamee-js.js.map
  5. +1 −1 gamee/dist/gamee-js.min.js
  6. +1 −1 gamee/dist/gamee-js.min.js.map
@@ -1 +1,2 @@
gamee/dist
gamee/dist
.idea
@@ -4,7 +4,10 @@ const path = require('path'),
module.exports = {
devtool: '#source-map',

entry: './gamee/src/index.js',
entry: {
"gamee-js": "./gamee/src/index.js",
"gamee-js.min": "./gamee/src/index.js",
},

module: {
rules: [
@@ -26,7 +29,7 @@ module.exports = {
// library: 'gamee',
libraryTarget: 'umd',
path: path.resolve(__dirname, '../gamee/dist'),
filename: 'gamee-js.min.js'
filename: '[name].js'
},

plugins: [
@@ -38,6 +41,7 @@ module.exports = {
banner: `@preserve build time ${new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '')}`
}),
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
sourceMap: true,
beautify: false,
mangle: {
@@ -71,4 +75,4 @@ module.exports = {
})
],

}
}

0 comments on commit 30e143e

Please sign in to comment.
You can’t perform that action at this time.