-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwebpack.config.js
47 lines (47 loc) · 1.07 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
'use strict';
const path = require('path');
const theme = require('./theme');
const resolve = (filepath) => path.resolve(__dirname, filepath);
module.exports = {
entry: {
app: resolve('app/web/main.tsx'),
},
dll: [
'react',
'react-dom',
'react-redux',
'redux',
'redux-thunk',
'react-router',
'react-router-config',
'react-router-dom',
'react-router-redux',
'xterm',
],
loaders: {
babel: {
include: [resolve('app/web'), resolve('node_modules')],
},
less: {
include: [resolve('./app/web'), resolve('./node_modules')],
options: {
javascriptEnabled: true,
modifyVars: theme,
},
},
typescript: true,
scss: true,
css: true,
urlimage: true,
urlfont: true,
},
alias: {
'@': resolve('app/web'),
},
plugins: {
imagemini: false,
},
done() {
console.log('---webpack compile finish---');
},
};