github-actions e4ecb842aa Update prebuilt objects [skip actions] | il y a 1 an | |
---|---|---|
.. | ||
.vscode | il y a 2 ans | |
config | il y a 4 ans | |
dist | il y a 1 an | |
mock | il y a 1 an | |
src | il y a 1 an | |
test | il y a 4 ans | |
webpack | il y a 1 an | |
.babelrc | il y a 2 ans | |
.eslintcache | il y a 2 ans | |
.eslintrc | il y a 4 ans | |
.eslintrc.json.back | il y a 4 ans | |
.gitignore | il y a 4 ans | |
LICENSE | il y a 4 ans | |
README.md | il y a 4 ans | |
debug.log | il y a 4 ans | |
package.json | il y a 1 an | |
package_old.json | il y a 2 ans | |
postcss.config.js | il y a 4 ans | |
test.js | il y a 4 ans | |
test.txt | il y a 4 ans | |
tsconfig.json | il y a 2 ans | |
tslint.json | il y a 4 ans | |
webapp.cmake | il y a 1 an | |
webapp.code-workspace | il y a 2 ans | |
webpack.c | il y a 1 an | |
webpack.config.js | il y a 1 an | |
webpack.h | il y a 1 an |
SASS · Babel · Bootstrap · JQuery · PopperJS · Font Awesome
This Webpack4-Sass Boilerplate contains the following features:
This project contains the following loaders & plugins:
node-sass
for compiling sass (SCSS)babel-loader
for compiling ES6 codebabel-eslint && eslint-loader
for Linting your .jstslint
for Linting your .tslodash-webpack-plugin
create smaller Lodash builds by replacing feature sets of modules with noop, identity, or simpler alternatives.webpack-dev-server
for serving & Hot-Reloadingcss-loader
for compressing csssass-loader
for compressing and loading scss & sassurl- & file-loader
for loading and optimizing imagesxml and csv loader
for loading data fileshtml-loader
for loading & optimizing html filesclean-webpack-plugin
for keeping your dist folder cleanfavicons-webpack-plugin
generate favicons form your "logo.png"Make sure these are installed first.
git clone https://github.com/AndyKorek/webpack-boilerplate-sass-ts-bootstrap4-fontawesome.git
cd
into project directory.Run npm i
to install required dependencies.
Run the Dev Server with (with Hot Reloading) npm run dev
npm run build
This will:
src
- > source directory
dist
-> build directory
├── src
│ ├── assets
│ │ └── images
│ ├── fonts
│ ├── sass
│ │ ├── layout
| | | └── _features.scss
│ │ ├── setup
| | | └── _normalize.scss
│ │ ├── themes
| | | ├── _slate.scss
| | | └── _yeti.scss
│ │ ├── utils
| | | ├── _mixins.scss
| | | └── _variables.scss
│ │ ├── _globals.scss
│ │ ├── _headings.scss
│ │ ├── _typography.scss
│ │ ├── _vendor.scss
│ │ └── main.scss
│ ├── ts
│ │ ├── custom.ts
│ │ ├── line-awesome.ts
│ │ ├── vendor.ts
│ |── .htaccess
│ |── 404.html
│ |── index.html
│ └── index.ts
├── dist
│ ├── assets
│ │ ├── images
│ │ └──
│ ├── css
│ │ ├── vendors.[contenthash].css
│ │ └── main.contenthash].css
│ ├── js
│ │ ├── main.[contenthash].js
│ │ ├── runtime.[contenthash].js
│ │ └── vendors.[contenthash].js
│ │
│ └── index.html
in src/js/vendor/_boostrap.js
uncomment all Features you need
put your custom js to src/js/_custom.js
Add sass
(.scss) files to src/_scss
folder.
Make sure you import the scss file in main.scss
@import "filename";
Add your assets to src/assets/
Add images
to src/assets/images
Code released under the MIT License.
</> with :heart: from Germany