-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvue.config.js
More file actions
executable file
·49 lines (47 loc) · 1.11 KB
/
Copy pathvue.config.js
File metadata and controls
executable file
·49 lines (47 loc) · 1.11 KB
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
48
49
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
pages: {
index: {
entry: "src/main.js",
template: "public/index.html",
filename: "index.html"
}
},
devServer: {
clientLogLevel: "warning",
hot: true,
contentBase: "dist",
compress: true,
open: true,
overlay: {warnings: false, errors: true},
publicPath: "/",
quiet: true,
watchOptions: {
poll: false,
ignored: /node_modules/
}
},
chainWebpack: config => {
config.module
.rule("vue")
.use("vue-loader")
.loader("vue-loader")
.tap(options => {
options.compilerOptions.preserveWhitespace = true;
return options;
});
},
productionSourceMap: false,
// assetsDir: "./assets/",
// configureWebpack: {
// plugins: [
// new CopyWebpackPlugin([
// {from: "src/assets/images", to: "assets/img"},
// ])
// ]
// },
lintOnSave: false,
pluginOptions: {},
transpileDependencies: ["vue-echarts", "resize-detector"]
};