-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
46 lines (43 loc) · 1003 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
const path = require('path');
module.exports = {
configureWebpack: {
resolve: {
alias: {
'@': path.join(__dirname, './src')
},
extensions: ['.js', '.vue', '.json']
}
},
chainWebpack: config => {
config
.plugin('html')
.tap(args => [{ ...args[0], title: 'The Showcase' }])
.end();
config.module
.rule('markdown')
.test(/\.md$/)
.use('raw-loader')
.loader('raw-loader');
config.module
.rule('scss')
.oneOf('vue')
.use('sass-loader')
.tap(opts => ({
...opts,
// eslint-disable-next-line global-require
implementation: require('sass'),
// See https://github.com/webpack-contrib/sass-loader/issues/804
// webpackImporter: false,
sassOptions: {
includePaths: ['./node_modules', './src']
}
}));
},
css: {
loaderOptions: {
scss: {
prependData: '@import "~@/styles/prepend";'
}
}
}
};