Skip to content

Instantly share code, notes, and snippets.

@madeinfree
Created May 26, 2016 01:44
Show Gist options
  • Save madeinfree/712b39dd68563f3f7b1e94e78dec70b2 to your computer and use it in GitHub Desktop.
Save madeinfree/712b39dd68563f3f7b1e94e78dec70b2 to your computer and use it in GitHub Desktop.
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