Initital working browser build

This commit is contained in:
2018-06-12 13:35:45 +05:30
parent 5ce8442956
commit b5ab93cc82
3 changed files with 16 additions and 7 deletions
+1 -3
View File
@@ -6,9 +6,7 @@
"modules": false,
"targets": {
"browsers": [
"> 1%",
"last 2 versions",
"not ie <= 8"
"last 2 Chrome versions"
]
}
}
+11
View File
@@ -0,0 +1,11 @@
// @TODO 1. Change babelrc browser support to :
// ```
// "browsers": [
// "> 1%",
// "last 2 versions",
// "not ie <= 8"
// ]
// ```
// @TODO 2: In webpack, enable uglify
//
+4 -4
View File
@@ -22,10 +22,10 @@ module.exports = {
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/,
minimize: true
}) ,
// new webpack.optimize.UglifyJsPlugin({
// include: /\.min\.js$/,
// minimize: true
// }) ,
new CopyWebpackPlugin([
{ from: 'demo/index.html', to: 'dist/' }
])