-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
webpack.config.js
43 lines (42 loc) · 1.28 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
'use strict';
module.exports = {
mode: "development",
devtool:
process.env.NODE_ENV === 'development' ? 'eval-source-map' : 'source-map',
entry: {
'demo0-simple-transition': './demos/demo0-simple-transition/index.jsx',
'demo1-chat-heads': './demos/demo1-chat-heads/index.jsx',
'demo2-draggable-balls': './demos/demo2-draggable-balls/index.jsx',
'demo3-todomvc-list-transition': './demos/demo3-todomvc-list-transition/index.jsx',
'demo4-photo-gallery': './demos/demo4-photo-gallery/index.jsx',
'demo5-spring-parameters-chooser': './demos/demo5-spring-parameters-chooser/index.jsx',
'demo7-water-ripples': './demos/demo7-water-ripples/index.jsx',
'demo8-draggable-list': './demos/demo8-draggable-list/index.jsx',
},
output: {
filename: '[name]/all.js',
publicPath: '/demos/',
path: __dirname + '/demos/',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /build|lib|bower_components|node_modules/,
loader: 'babel-loader'
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
},
{
test: /\.jsx?$/,
loader: 'eslint-loader',
exclude: /build|lib|bower_components|node_modules/
},
],
},
resolve: {
extensions: ['.js', '.jsx']
},
};