Parcourir la source

remove comment in UglifyJs plugin and delete source map on dev

pull/342/head
Guillaume Vincent il y a 8 ans
Parent
révision
9b4920e567
1 fichiers modifiés avec 8 ajouts et 10 suppressions
  1. +8
    -10
      webpack.config.js

+ 8
- 10
webpack.config.js Voir le fichier

@@ -1,8 +1,8 @@
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var purify = require("purifycss-webpack-plugin");
var OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const purify = require("purifycss-webpack-plugin");
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');

module.exports = {
entry: {
@@ -39,8 +39,7 @@ module.exports = {
"src/**/*.vue"
]
})
],
devtool: '#eval-source-map'
]
};

if (process.env.NODE_ENV === 'production') {
@@ -48,9 +47,8 @@ if (process.env.NODE_ENV === 'production') {
module.exports.plugins = (module.exports.plugins || []).concat([
new OptimizeCssAssetsPlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
output: {comments: false},
compress: {warnings: false}
})
]);
}


Chargement…
Annuler
Enregistrer