-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
49 lines (44 loc) · 1.29 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 path = require("path");
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
// .BundleAnalyzerPlugin;
module.exports = {
// pwa: {
// workboxPluginMode: 'InjectManifest',
// workboxOptions: {
// swSrc: 'src/service-worker.js',
// exclude: [
// /\.map$/,
// /manifest\.json$/
// ],
// },
// themeColor: '#1da025'
// },
css: {
loaderOptions: {
scss: {
prependData: `@import "@/assets/scss/common/common.scss";`,
},
},
},
configureWebpack: {
resolve: {
alias: {
config: path.resolve(__dirname, "src/config"),
// Components
atom: path.resolve(__dirname, "src/components/atoms"),
molecule: path.resolve(__dirname, "src/components/molecules"),
organism: path.resolve(__dirname, "src/components/organisms"),
// Data
model: path.resolve(__dirname, "src/models"),
service: path.resolve(__dirname, "src/services"),
api: path.resolve(__dirname, "src/api"),
// Helper
utils: path.resolve(__dirname, "src/utils"),
helper: path.resolve(__dirname, "src/helpers"),
// Mixins
mixin: path.resolve(__dirname, "src/mixins"),
},
},
// plugins: [ new BundleAnalyzerPlugin() ]
},
};