Created
June 14, 2018 00:07
-
-
Save dance2die/7898ed6dbfc121e6844a12beec114ea6 to your computer and use it in GitHub Desktop.
Setting up an ES6 Environment for ASP.NET MVC 5 - https://www.slightedgecoder.com/2017/05/22/setting-es6-environment-asp-net-mvc-5
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
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