First commit
This commit is contained in:
commit
9d69521b26
14 changed files with 3636 additions and 0 deletions
25
webpack.config.js
Normal file
25
webpack.config.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// webpack.config.js:
|
||||
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx']
|
||||
},
|
||||
entry: [
|
||||
path.resolve(__dirname, 'src/index.jsx')
|
||||
],
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'public/dist'),
|
||||
filename: 'main.js',
|
||||
publicPath: 'dist/'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{ test: /\.css$/, loader: "style!css" },
|
||||
{ test: /\.js(x)?$/, exclude: /node_modules/, loader: "babel-loader" }
|
||||
]
|
||||
},
|
||||
devtool: 'source-map'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue