#101 Minified JS files
parent
6af4beb237
commit
780b64943b
File diff suppressed because it is too large
Load Diff
|
@ -33,6 +33,7 @@
|
|||
"socket.io": "^2.0.3",
|
||||
"socket.io-client": "^2.0.3",
|
||||
"style-loader": "^0.18.2",
|
||||
"uglifyjs-webpack-plugin": "^0.4.6",
|
||||
"webpack": "^3.0.0",
|
||||
"xss": "^0.3.3",
|
||||
"zxcvbn": "^4.4.2"
|
||||
|
|
|
@ -53,7 +53,7 @@ $(function() {
|
|||
|
||||
// Load google maps
|
||||
loadGoogleMapsAPI({ key:mapKey })
|
||||
.then(function(googlemaps) {
|
||||
.then( function(googlemaps) {
|
||||
|
||||
// Create map
|
||||
if (disp!=='1') {
|
||||
|
@ -293,6 +293,6 @@ loadGoogleMapsAPI({ key:mapKey })
|
|||
|
||||
}
|
||||
|
||||
}).catch((err) => {
|
||||
}).catch( function(err) {
|
||||
console.error(err);
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const path = require('path'),
|
||||
webpack = require('webpack');
|
||||
uglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
|
||||
|
@ -25,18 +25,23 @@ module.exports = {
|
|||
path: path.resolve(__dirname, 'static/js')
|
||||
},
|
||||
|
||||
// Optimization
|
||||
// plugins: [
|
||||
// new webpack.optimize.UglifyJsPlugin({minimize: true})
|
||||
// ],
|
||||
plugins: [
|
||||
|
||||
// Minimize JS
|
||||
new uglifyJsPlugin()
|
||||
|
||||
],
|
||||
|
||||
// Load CSS into bundles
|
||||
module: {
|
||||
|
||||
rules: [
|
||||
|
||||
// Load CSS into bundles
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [ 'style-loader', 'css-loader' ]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue