-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
43 lines (42 loc) · 1.09 KB
/
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
//const path = require('path')
module.exports = {
css: {
loaderOptions: {
sass: {
data: `@import "@/styles/imports.scss";`
},
},
},
configureWebpack: {
module: {
rules: [
{
test: /\.html$/,
use: 'raw-loader',
}
],
}
},
chainWebpack: () => {
/*const types = ['vue-modules', 'vue', 'normal-modules', 'normal']
types.forEach(type => addStyleResource(config.module.rule('scss').oneOf(type)))*/
/*config.module.rule('images').use('url-loader')
.loader('url-loader')
.tap(options => Object.assign(options, { limit: 10240 }));*/
},
pluginOptions: {},
devServer: {
host: '0.0.0.0',
port: 8081,
}
};
/*
function addStyleResource(rule) {
rule.use('style-resource')
.loader('style-resources-loader')
.options({
patterns: [
path.resolve(__dirname, './src/styles/imports.scss'),
],
})
}*/