initial react app(WIP)
This commit is contained in:
32
webpack.config.js
Normal file
32
webpack.config.js
Normal file
@ -0,0 +1,32 @@
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
devtool: 'sourcemap',
|
||||
entry: './client',
|
||||
output: {
|
||||
filename: 'fcc.js',
|
||||
path: path.join(__dirname, '/public/js'),
|
||||
publicPath: 'public/'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
include: [
|
||||
path.join(__dirname, 'client/'),
|
||||
path.join(__dirname, 'common/')
|
||||
],
|
||||
loaders: [
|
||||
'babel-loader'
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.json$/,
|
||||
loaders: [
|
||||
'json-loader'
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: []
|
||||
};
|
Reference in New Issue
Block a user