Migrated to Webpack, MobX
This commit is contained in:
parent
c1ae765a16
commit
1256b8e27c
13 changed files with 2445 additions and 7203 deletions
30
webpack.config.js
Normal file
30
webpack.config.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
devtool: 'eval',
|
||||
entry: [
|
||||
'webpack-dev-server/client?http://localhost:3000',
|
||||
'webpack/hot/only-dev-server',
|
||||
'./src/index'
|
||||
],
|
||||
output: {
|
||||
path: path.join(__dirname, 'dist'),
|
||||
filename: 'bundle.js',
|
||||
publicPath: '/static/'
|
||||
},
|
||||
plugins: [
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
new webpack.NoErrorsPlugin()
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['', '.js', '.ts', '.tsx']
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /\.tsx?$/,
|
||||
loaders: ['react-hot', 'ts-loader'],
|
||||
include: path.join(__dirname, 'src')
|
||||
}]
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue