26 lines
641 B
JavaScript
Vendored
26 lines
641 B
JavaScript
Vendored
const StyleLintPlugin = require('stylelint-webpack-plugin');
|
|
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
|
const merge = require('webpack-merge');
|
|
const common = require('./webpack.common.js');
|
|
|
|
|
|
module.exports = merge(common, {
|
|
module: {
|
|
rules: [{
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
loader: 'eslint-loader',
|
|
options: {
|
|
failOnError: true,
|
|
configFile: 'prod.eslintrc',
|
|
},
|
|
}],
|
|
},
|
|
plugins: [
|
|
new StyleLintPlugin({
|
|
files: '**/*.css',
|
|
}),
|
|
new UglifyJsPlugin(),
|
|
],
|
|
});
|