-
Notifications
You must be signed in to change notification settings - Fork 2
/
vue.config.js
43 lines (42 loc) · 900 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
// vue.config.js
const StylelintPlugin = require("stylelint-webpack-plugin");
/**
* @type {import('@vue/cli-service').ProjectOptions}
*/
module.exports = {
chainWebpack(config) {
// Set up all the aliases we use in our app.
config.resolve.alias.clear().merge(require("./aliases.config"));
config.module
.rule("vue")
.use("vue-loader")
.tap((options) => ({
...options,
reactivityTransform: true,
}));
},
configureWebpack: {
plugins: [
new StylelintPlugin({
files: "src/**/*.{vue,scss}",
}),
],
},
css: {
loaderOptions: {
sass: {
additionalData: `
@import "@styles/reset.scss";
@import "@styles/mixin.scss";
`,
},
},
},
pages: {
index: {
// entry for the page
entry: "src/main.ts",
},
},
productionSourceMap: false,
};