forked from once-ler/react-nested-json-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
executable file
·37 lines (36 loc) · 1 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
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
devtool: 'eval',
entry: [
'babel-polyfill',
'webpack-hot-middleware/client',
'./example/index.js'
],
output: {
path: path.join(__dirname, 'build'),
filename: 'app.js',
publicPath: '/static/'
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new HtmlWebpackPlugin({
title: 'react-nested-json-table',
filename: 'index.html',
template: 'index.template.html',
favicon: path.join(__dirname, 'static', 'images', 'favicon.ico')
})
],
resolve: {
extensions: ['', '.js', '.jsx', '.css']
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel', include: [ path.join(__dirname, 'src'), path.join(__dirname, 'example') ] },
{ test: /\.css$/, loader: 'style-loader!css-loader'},
{ test: /\.template.html$/, loader: 'blueimp-tmpl-loader'}
]
}
};