forked from easy-team/egg-vue-webpack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
32 lines (32 loc) · 898 Bytes
/
webpack.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
'use strict';
module.exports = {
egg: true,
framework: 'vue',
entry: {
include: ['app/web/page'],
exclude: [/app\/web\/page\/admin\/home\/(component|view|router|store)/],
loader: {
client: 'app/web/framework/vue/entry/client-loader.js',
server: 'app/web/framework/vue/entry/server-loader.js',
}
},
alias: {
server: 'app/web/framework/vue/entry/server.js',
client: 'app/web/framework/vue/entry/client.js',
asset: 'app/web/asset',
component: 'app/web/component',
framework: 'app/web/framework',
store: 'app/web/store',
vue: 'vue/dist/vue.esm.js'
},
dll: ['vue', 'axios', 'vue-router', 'vuex', 'vuex-router-sync'],
loaders: {
scss: true
},
node: {
console: true
},
done() {
console.log('如果启动成功后, Chrome控制台浏览器脚本报错, 可以尝试执行 npm run clean 清除缓存解决');
}
};