Skip to content

Instantly share code, notes, and snippets.

@naufaldi
Last active January 23, 2018 18:30
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 naufaldi/679d430b8405157b1127ee474b60bf45 to your computer and use it in GitHub Desktop.
Save naufaldi/679d430b8405157b1127ee474b60bf45 to your computer and use it in GitHub Desktop.
webpack for js
module.exports ={
entry : {
app : "./resource/assets/js/app.js"
},
output: {
path: __dirname + "/public/assets/js/",
filename: "[name].js"
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_mudles/,
loader: ['babel-loader'],
query: {
presets: ['es2016']
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment