Created
May 26, 2016 01:44
-
-
Save madeinfree/712b39dd68563f3f7b1e94e78dec70b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
module.exports = { | |
entry: [ | |
'./src/index.react.js' | |
], | |
output: { | |
path: path.resolve(__dirname, 'build'), | |
filename: 'bundle.js', | |
publicPath: 'build' | |
}, | |
debug: true, | |
devtool: 'eval-source-map', | |
resolve: { | |
extensions: [ '', '.js', '.jsx' ], | |
alias: { | |
containers: path.resolve(__dirname, './src/containers'), | |
config: path.resolve(__dirname, './server') | |
} | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
loaders: [ 'babel' ], | |
include: path.resolve(__dirname, 'src') | |
}, | |
{ | |
test: /\.css$/, loader: 'style-loader!css-loader' | |
}, | |
{ test: /(\.eot|\.woff2|\.woff|\.ttf|\.svg)/, loader: 'file-loader' } | |
] | |
}, | |
plugins: [] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment