An open API service indexing awesome lists of open source software.

https://github.com/sandhupal/ecmascript-6-and-babel-project-learning

ECMAScript 6, Babel and Webpack Project Learning
https://github.com/sandhupal/ecmascript-6-and-babel-project-learning

babel-webpack babeljs ecmascript2015 es6 es6-javascript webpack

Last synced: 5 months ago
JSON representation

ECMAScript 6, Babel and Webpack Project Learning

Awesome Lists containing this project

README

          

# ECMAScript-6-and-Babel-Project-Learning




npm init

npm i -g webpack

npm install --save-dev babel-loader @babel/core





Webpack.config.js

const path = require("path");



module.exports = {

entry: "./index.js",

output: {

path: path.resolve(__dirname, "dist"),

filename: "es6.bundle.js"

},

module: {

rules: [{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }]

}

};