Skip to content

Instantly share code, notes, and snippets.

@dong-qian
Created April 20, 2017 01:02
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 dong-qian/4b8c63ec77af964f0ceb5bfad10507f7 to your computer and use it in GitHub Desktop.
Save dong-qian/4b8c63ec77af964f0ceb5bfad10507f7 to your computer and use it in GitHub Desktop.
module.exports = {
entry: './src/js/app.js',
output: {
path: __dirname+'/dist',
filename: 'bundle.js'
},
module:{
loaders: [
{test: /\.css$/, loader: "style-loader!css-loader"},
{test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/, query:{presets:['es2015']}}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment