-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
35 lines (31 loc) · 893 Bytes
/
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
const path = require('path');
const webpack = require('webpack');
const outputDir = './wwwroot/dist';
module.exports = (env) => {
const isDevBuild = !(env && env.prod);
return [{
stats: { modules: false },
context: __dirname,
entry: { 'main': './ClientApp/main.js' },
module: {
rules: [
{ test: /\.vue$/, include: /ClientApp/, loader: 'vue-loader'},
]
},
watch: true,
watchOptions: {
aggregateTimeout: 100
},
output: {
path: path.join(__dirname, outputDir),
filename: '[name].js',
publicPath: 'dist/'
},
plugins: [
new webpack.DllReferencePlugin({
context: __dirname,
manifest: require('./wwwroot/dist/vendor-manifest.json')
})
]
}];
};