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
- Host: GitHub
- URL: https://github.com/sandhupal/ecmascript-6-and-babel-project-learning
- Owner: SandhuPal
- Created: 2019-04-25T12:16:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T14:09:12.000Z (about 7 years ago)
- Last Synced: 2025-12-06T21:46:13.300Z (8 months ago)
- Topics: babel-webpack, babeljs, ecmascript2015, es6, es6-javascript, webpack
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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" }]
}
};