webpack-postcss

October 31, 2022 · View on GitHub

CircleCI

My Personal Boilerplate

Branches

BranchDescription
masterPostCSS that compliant tomorrow’s CSS syntax as much as possible w/ postcss-preset-env
moduleES 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-typescriptreact + typescript
vuejs☝️ You can also use Vue.js partially
+ Vue.js
webpack-dev-server+ webpack-dev-server

:beer: Setup

:hamburger: Commands

See package.json

npm scriptDescription
npm run devWatching for Dev
npm run buildBuilding for Deploy

:bookmark: NOTES

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

Troubleshooting

Remove Cache (SWC / ESLint / webpack)

$ rm -rf node_modules/.cache/swc-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

@ https://github.com/GoogleChromeLabs/size-plugin/issues/40