-
Notifications
You must be signed in to change notification settings - Fork 12
/
vue.config.js
47 lines (46 loc) · 1.37 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
46
47
const fs = require('fs');
const CompressionPlugin = require("compression-webpack-plugin");
module.exports = {
css: {
loaderOptions: {
sass: {
sassOptions: {
// options here will be passed to postcss-loader
indentedSyntax: false
}
}
}
},
devServer: {
host: 'localhost',
https: false,
key: fs.readFileSync('localhost.key'),
cert: fs.readFileSync('localhost.crt'),
ca: fs.readFileSync('ca.pem'),
disableHostCheck: true
},
chainWebpack: config => config.optimization.minimize(false),
configureWebpack: {
plugins: [new CompressionPlugin()],
resolve: {
symlinks: false
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: {test: /node_modules/, // Exclude libraries in node_modules ...
not: [
// Except for a few of them that need to be transpiled because they use modern syntax
/cassproject/,
/yocto-queue/
]},
use: {
loader: 'babel-loader'
}
}
]
}
},
publicPath: ''
};