-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
44 lines (38 loc) · 1.07 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const TerserPlugin = require('terser-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const path = require("path");
const isProd = process.env.mode === 'production';
module.exports = {
mode: isProd ? 'production' : 'development',
optimization: {
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {
warnings: false,
output: 6
},
parallel: true
}),
new OptimizeCSSAssetsPlugin()
]
},
resolve: {
extensions: ['.js', '.vue', '.json', '.less', '.twig'],
},
module: {
rules: [
{
test: /\.(html|twig)$/,
loader: 'html-loader'
},
]
},
entry: {
main: './src/Resources/app/administration/src/main.js',
},
output: {
path: path.resolve(__dirname, 'src/Resources/public/administration/js'),
filename: 'mail-m-smart-inbox-connector.js',
},
};