-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvue.config.js
49 lines (48 loc) · 1.19 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
48
49
// const Visualizer = require('webpack-visualizer-plugin');
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
module.exports = {
publicPath: '/',
configureWebpack: {
plugins: [
new NodePolyfillPlugin()
// new Visualizer({ filename: './statistics.html' }),
],
optimization: {
splitChunks: {
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/](leaflet)[\\/]/,
name: 'leaflet-chunk',
chunks: 'all',
},
new: {
test: /[\\/]node_modules[\\/](esri-leaflet)[\\/]/,
name: 'esri-leaflet-chunk',
chunks: 'all',
}
}
}
},
},
chainWebpack: (config) => {
config.plugins.delete('prefetch');
},
css: {
loaderOptions: {
sass: {
prependData: `@import "@/scss/_variables.scss";
@import "@/scss/_mixins.scss";`,
},
},
},
// runtimeCompiler: true,
// transpileDependencies: [
// // can be string or regex
// '@mapbox/mapbox-gl-draw',
// '@phila/mapboard',
// '@phila/vue-comps',
// '@phila/vue-mapping',
// '@phila/vue-datafetch',
// // /other-dep/
// ],
};