webpack-scss-js-starter-kit
v1.0.8
Published
Simple foundation for your frontend project.
Downloads
27
Maintainers
Readme
webpack-scss-js-starter-kit
Simple foundation for your frontend project.
Features:
Loaders:
Plugins:
Installation
1. Go to your project directory
2. git clone https://github.com/dmitriyakkerman/webpack-scss-js-starter-kit.git .
3. Run npm install
Configuration
- Create "src" folder.
- Create "scss" and "js" folders inside "src" folder.
- Create entry "main.scss" file inside "scss" folder and entry "main.js" file inside "js" folder.
- Import your fonts to entry "main.scss"(if needed).
- Do additional configuration or any changes you need for your development process in "webpack.config.js" file.
Building
npm run build
This will create output "dist" folder with separate "css" and "js" folders with "main.min.css" and "main.min.js" files inside and also "fonts" folder.
Assets connection:
Connect "main.min.css" and "main.min.js" to your project.
Enjoy!
Your project is now running on http://localhost:3000 by default (you can change your host in "proxy" property in webpack.config.js)