Skip to content

Instantly share code, notes, and snippets.

View markselby9's full-sized avatar
🎯
Focusing

Mark Feng markselby9

🎯
Focusing
View GitHub Profile
@markselby9
markselby9 / webpack.md
Created November 1, 2022 08:56 — forked from nicolasdao/webpack.md
Basic damn Webpack config for simple transpilation ES6 to ES5

Install

npm install -D acorn babel-loader @babel/core @babel/preset-env babel-polyfill webpack webpack-cli uglifyjs-webpack-plugin --save-dev

webpack-cli and acorn are dependencies that you, unfortunately, have to install if you want to run this god damn thing without any obscure warnings or errors.

Build

Configure Webpack