This Webpack starter kit comes with several tools and opinionated choices for your front-end development projects.
Its main purpose is to bundle JavaScript files for usage in a browser.
A starter kit workflow using Webpack, PUG, SASS, PostCSS & Babel.
Clone the repository and substitute my-project
for your real project name.
git clone https://github.com/erwcode/webpack-starter-kit.git my-project
Once repository has been cloned, open its location from the terminal and install the npm dependencies.
npm install
By setting the mode parameter to either development, production, you can enable webpack's built-in optimizations that correspond to each environment.
npm run dev
- build in development modenpm run build
- build in production mode
Also, you can use webpack with a development server that provides live reloading. This should be used for development only.
npm start
- build and watch changes
π¦webpack-starter-kit
ββ πsrc
β ββ πfonts
β β ββ Averta.woff
β ββ πimages
β β ββ babel.svg
β β ββ favicon.png
β β ββ isotipo.svg
β β ββ mockup.png
β β ββ postcss.svg
β β ββ pug.svg
β β ββ sass.svg
β β ββ webpack.svg
β ββ πpug
β β ββ πincludes
β β β ββ logo.pug
β β ββ πpages
β β β ββ index.pug
β β ββ template.pug
β ββ πscss
β β ββ πbase
β β β ββ _reset.scss
β β ββ πcomponents
β β β ββ _logo.scss
β β ββ πlayout
β β β ββ _l-container.scss
β β ββ πsettings
β β β ββ _fonts.scss
β β β ββ _mixins.scss
β β β ββ _variables.scss
β β ββ πstate
β β β ββ _is-active.scss
β β ββ πtheme
β β β ββ _dark.scss
β β ββ main.scss
β ββ index.js
ββ .babelrc
ββ .editorconfig
ββ .gitignore
ββ LICENSE
ββ README.md
ββ package-lock.json
ββ package.json
ββ postcss.config.js
ββ webpack.config.js
Name | Role |
---|---|
Erwin Alan FrΓas MartΓnez | Front-End Developer |
Made with π by ErwCode Technologies.