Skip to content

webpack 5 - Babel - ESLint - Prettier - PostCSS - stylelint - ES Modules

Notifications You must be signed in to change notification settings

dbox/webpack-postcss

 
 

Repository files navigation

webpack-postcss

CircleCI

My Personal Boilerplate

Branches

Branch Description
master PostCSS that compliant tomorrow’s CSS syntax as much as possible w/ postcss-preset-env
module ES Modules <script type="module">
  • Support for Differential Serving of Modern and Legacy bundle.
  • In the next version this branch will be merged into the master branch.
sass + SASS
- PostCSS
tailwindcss + Tailwind CSS
typescript + TypeScript
- JavaScript
react ☝️ You can also use React partially
+ React
react-typescript react + typescript
vuejs ☝️ You can also use Vue.js partially
+ Vue.js
webpack-dev-server + webpack-dev-server

🍺 Setup

🍔 Commands

See package.json

npm script Description
npm run dev Watching for Dev
npm run build Building for Deploy

🔖 NOTES

  • Rename .env.example to .env for dotenv
    $ mv .env.example .env
    
    📝 .env file is already set to "ignore" within the .giignore file.

Troubleshooting

Remove Cache (Babel / ESLint / webpack)

$ rm -rf node_modules/.cache/babel-loader
$ rm -rf node_modules/.cache/eslint-loader
$ rm -rf node_modules/.cache/webpack
# Remove all
$ rm -rf node_modules/.cache

Known Issues on webpack 5

@ GoogleChromeLabs/size-plugin#40

About

webpack 5 - Babel - ESLint - Prettier - PostCSS - stylelint - ES Modules

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 50.6%
  • JavaScript 49.2%
  • Shell 0.2%