-
Notifications
You must be signed in to change notification settings - Fork 2
/
vue.config.js
45 lines (44 loc) · 1.01 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
// const removeUrlLoaderLimit = function(rule) {
// return rule
// .use("url-loader")
// .loader("url-loader")
// .tap(options => delete options.limit);
// };
module.exports = {
chainWebpack: config => {
config.output
.filename("[name].js")
config.optimization.delete("splitChunks");
config.module
.rule("images")
.use("url-loader")
.loader("url-loader")
.tap(options => {
delete options["limit"];
return options
});
config.module
.rule("media")
.use("url-loader")
.loader("url-loader")
.tap(options => {
delete options["limit"];
return options
});
config.module
.rule("fonts")
.use("url-loader")
.loader("url-loader")
.tap(options => {
delete options["limit"];
return options
});
config.plugins.delete("copy");
config.plugins.delete("preload");
config.plugins.delete("prefetch");
},
css: {
modules: true,
extract: false
}
};