Skip to content

Instantly share code, notes, and snippets.

@MikeCheng1208
Created September 11, 2018 06:56
Show Gist options
  • Save MikeCheng1208/b31d7848b211ddf03e017354214a7077 to your computer and use it in GitHub Desktop.
Save MikeCheng1208/b31d7848b211ddf03e017354214a7077 to your computer and use it in GitHub Desktop.
webpack setting
var path = require('path');
module.exports = {
context: path.resolve(__dirname, 'js'),
entry: {
index: './index.js'
},
output: {
path: path.resolve(__dirname, 'js'),
filename: './index.bundle.js',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment