-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathwebpack.config.cjs
More file actions
38 lines (36 loc) · 868 Bytes
/
webpack.config.cjs
File metadata and controls
38 lines (36 loc) · 868 Bytes
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
/* eslint-env node */
const path = require('path');
const {VueLoaderPlugin} = require('vue-loader');
module.exports = {
module: {
rules: [
{test: /\.vue$/, loader: 'vue-loader'},
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader'],
},
],
},
entry: {
visualizer: './src/index.js',
persistence: './src/persistence.js',
},
resolve: {
// Use the standalone version of Vue that includes the template compiler.
alias: {vue$: 'vue/dist/vue.esm.js'}, // eslint-disable-line quote-props
fallback: {fs: false},
},
output: {
path: path.join(__dirname, 'build'),
clean: true,
filename: '[name]-bundle.js',
publicPath: '/assets/',
},
plugins: [new VueLoaderPlugin()],
devServer: {
static: {
directory: path.join(__dirname, 'public'),
},
port: 8080,
},
};