-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
47 lines (41 loc) · 927 Bytes
/
vue.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
45
46
47
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
css: {
loaderOptions: {
sass: {
prependData: `
@import "@/styles/_imports.scss";
`
}
}
},
configureWebpack: {
plugins: [
new CopyPlugin([
{ from: './data', to: './data' },
]),
]
},
chainWebpack: config => {
config.resolve.symlinks(false);
config.module.rule('eslint').use('eslint-loader')
.tap(opts => ({ ...opts, emitWarning: true }));
// config.module
// .rule("vue")
// .use("vue-svg-inline-loader")
// .loader("vue-svg-inline-loader")
// .options({});
},
pluginOptions: {
prerenderSpa: {
registry: undefined,
renderRoutes: [
'/'
],
useRenderEvent: true,
headless: true,
onlyProduction: true
}
}
};