Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created June 14, 2018 00:07
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 dance2die/7898ed6dbfc121e6844a12beec114ea6 to your computer and use it in GitHub Desktop.
Save dance2die/7898ed6dbfc121e6844a12beec114ea6 to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
entry: ['./Scripts/es6/main.js'],
output: {
path: path.resolve(__dirname, './Scripts/build'),
filename: 'bundle.js'
},
// IMPORTANT NOTE: If you are using Webpack 2 or above, replace "loaders" with "rules"
module: {
loaders: [{
loader: 'babel-loader',
test: /\.js$/,
exclude: /node_modules/
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment