-
Notifications
You must be signed in to change notification settings - Fork 3
/
vue.config.js
45 lines (44 loc) · 1.14 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
44
45
// eslint-disable-next-line @typescript-eslint/no-var-requires
const PostcssPresetEnv = require('postcss-preset-env');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const PostcssCustomMedia = require('postcss-custom-media');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = {
devServer: {
host: 'localhost',
},
css: {
loaderOptions: {
postcss: {
plugins: [
require('postcss-nested'),
PostcssPresetEnv({
stage: 3,
browsers: '> 1%',
}),
PostcssCustomMedia({
importFrom: [
{
customMedia: {
'--viewport-s': '(width >= 768px)',
'--viewport-m': '(width >= 992px)',
'--viewport-l': '(width >= 1200px)',
'--viewport-xl': '(width >= 1440px)',
},
},
],
}),
],
},
},
},
configureWebpack: {
resolve: {
symlinks: false,
alias: {
vue: path.resolve('./node_modules/vue'),
},
},
},
};