Skip to content

Instantly share code, notes, and snippets.

@jonnung
Created April 27, 2016 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnung/777d69747a17864fec72c28d9afda7b0 to your computer and use it in GitHub Desktop.
Save jonnung/777d69747a17864fec72c28d9afda7b0 to your computer and use it in GitHub Desktop.
[DalkStudy] webpack.config.js
module.exports = {
entry: {
app: './src/app.js'
},
output: {
path: __dirname + '/dist',
publicPath: "/assets/",
filename: '[name].bundle.js'
},
devServer: {
inline: true,
port: 8485
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/,
query: {
cacheDirectory: true,
presets: ['react']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment