Skip to content

Commit

Permalink
work npm run prod with refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar300 committed Dec 1, 2017
1 parent 13b4132 commit 50c7a5e
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 17,516 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Expand Up @@ -2,7 +2,8 @@
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions", "ie >= 9", "Firefox ESR"]
"browsers": ["last 2 versions", "ie >= 9", "Firefox ESR"],
"uglify": true
}
}]
],
Expand Down
7 changes: 3 additions & 4 deletions build/webpack.prod.js
@@ -1,7 +1,7 @@
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const ManifestPlugin = require('webpack-manifest-plugin')
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const webpackBase = require('./webpack.base')

webpackBase.plugins.push(
Expand All @@ -17,9 +17,8 @@ webpackBase.plugins.push(
}
}
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
comments: false
new UglifyJsPlugin({
sourceMap: true
}),
new ManifestPlugin({
fileName: 'assets.json'
Expand Down
1 change: 1 addition & 0 deletions html/assets/app.494abcb1.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions html/assets/app.88df4dbc.min.css

Large diffs are not rendered by default.

0 comments on commit 50c7a5e

Please sign in to comment.