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, "modules": false,
"targets": { "targets": {
"browsers": [ "browsers": [
"> 1%", "last 2 Chrome versions"
"last 2 versions",
"not ie <= 8"
] ]
} }
} }
+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: [ plugins: [
new webpack.optimize.UglifyJsPlugin({ // new webpack.optimize.UglifyJsPlugin({
include: /\.min\.js$/, // include: /\.min\.js$/,
minimize: true // minimize: true
}) , // }) ,
new CopyWebpackPlugin([ new CopyWebpackPlugin([
{ from: 'demo/index.html', to: 'dist/' } { from: 'demo/index.html', to: 'dist/' }
]) ])