Created
November 24, 2017 21:35
-
-
Save maxwellb/6367fa7566b40f68c4cfb2a2bc307015 to your computer and use it in GitHub Desktop.
A relatively minimal Webpack configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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