forked from tleunen/react-mdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
31 lines (30 loc) · 941 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
var path = require('path');
module.exports = {
entry: {
badge: './demo/badge/badge.js',
button: './demo/button/button.js',
card: './demo/card/card.js',
toggle: './demo/toggle/toggle.js',
datatable: './demo/datatable/datatable.js',
textfield: './demo/textfield/textfield.js',
loading: './demo/loading/loading.js',
slider: './demo/slider/slider.js',
tooltip: './demo/tooltip/tooltip.js',
menu: './demo/menu/menu.js',
layout: './demo/layout/layout.js',
grid: './demo/grid/grid.js',
tabs: './demo/tabs/tabs.js',
footer: './demo/footer/footer.js'
},
output: {
path: path.join(__dirname, 'demo'),
filename: '[name].bundle.js',
chumkFilename: '[id].bundle.js'
},
devtool: 'sourcemap',
module: {
loaders: [
{ test: /\.js$/, loader: 'babel-loader' }
]
}
};