forked from guoxunbo/client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathice.config.js
29 lines (28 loc) · 839 Bytes
/
ice.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
const path = require('path');
module.exports = {
entry: 'src/index.js',
hash: true,
publicPath: './',
vendor: false,
define: {
ENV_MODE: JSON.stringify(process.env.ENV_MODE),
},
alias: {
'@': path.resolve(__dirname, './src/'),
'@components': path.resolve(__dirname, './src/components/'),
'@utils': path.resolve(__dirname, './src/api/utils/'),
'@const': path.resolve(__dirname, './src/api/const/'),
'@api': path.resolve(__dirname, './src/api/'),
'@layouts': path.resolve(__dirname, './src/layouts'),
'@pages': path.resolve(__dirname, './src/pages'),
'@properties': path.resolve(__dirname, './src/pages/Properties/'),
},
plugins: [
['ice-plugin-fusion', {
themePackage: '@icedesign/theme',
}],
['ice-plugin-moment-locales', {
locales: ['zh-cn'],
}],
],
};