Skip to content

Instantly share code, notes, and snippets.

@maxwellb
Created November 24, 2017 21:35
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 maxwellb/6367fa7566b40f68c4cfb2a2bc307015 to your computer and use it in GitHub Desktop.
Save maxwellb/6367fa7566b40f68c4cfb2a2bc307015 to your computer and use it in GitHub Desktop.
A relatively minimal Webpack configuration file
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: {
app: './entry/app'
},
output: {
path: path.resolve('../MVCApplication1/Scripts/App'),
filename: '[name].js'
},
resolve: {
alias: {
moment: 'moment'
}
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment