-
Notifications
You must be signed in to change notification settings - Fork 14
/
webpack.config.min.js
34 lines (34 loc) · 1.08 KB
/
webpack.config.min.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
const path = require('path');
module.exports = {
entry: {
'/public/dist/assets/js/libraries-extensions/s24-autocomplete': './assets-src/js/libraries-extensions/s24-autocomplete.js',
'/public/dist/assets/js/comments': './assets-src/js/comments.js',
'/public/dist/assets/js/main': './assets-src/js/main.js',
'/public/dist/assets/js/country-autocomplete': './assets-src/js/country-autocomplete.js',
'/public/dist/assets/js/slider': './assets-src/js/slider.js',
'/public/dist/assets/js/members': './assets-src/js/members.js',
'/public/dist/assets/js/working-group-autocomplete': './assets-src/js/working-group-autocomplete.js',
'/public/dist/assets/js/multiselect': './assets-src/js/multiselect.js',
'/public/dist/assets/js/translations-sorting': './assets-src/js/translations-sorting.js',
},
module: {
rules: [
{
test: /\.(js)$/,
exclude: /node_modules/,
use: ['babel-loader']
}
]
},
resolve: {
extensions: ['*', '.js']
},
mode: 'none',
output: {
filename: '[name].min.js',
path: path.resolve(__dirname, '.')
},
optimization: {
minimize: true
}
};