This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
webpack_complete_webdevelopment_config [2018/01/29 22:46] – [Webpack / Yarn Web Development Config] admin | webpack_complete_webdevelopment_config [2018/02/05 21:16] – [Slide 3] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~REVEAL dokuwiki~~ | ||
====== Webpack / Yarn Web Development Config ====== | ====== Webpack / Yarn Web Development Config ====== | ||
===== What it does ... ===== | ===== What it does ... ===== | ||
+ | * Build Webfont and corresponding SCSS (Webfont.scss.njk -> compiles to -> | ||
* Compile and process SCSS | * Compile and process SCSS | ||
* Lint | * Lint | ||
Line 14: | Line 16: | ||
* Uglify | * Uglify | ||
* Compress | * Compress | ||
+ | * Generate KSS Styleguide | ||
+ | * Icons included | ||
+ | * Using custom template (index.hbs, kss-assets/ | ||
+ | ===== Yarn ===== | ||
+ | |||
+ | * Define " | ||
+ | * Workspace will be linked to ./ | ||
+ | * Dependenies end up in ./ | ||
+ | * Centralize/ | ||
+ | |||
+ | <code bash Commands> | ||
+ | - development # Build assets for development | ||
+ | | ||
+ | - livereload | ||
+ | | ||
+ | - production | ||
+ | | ||
+ | - watch # Watch for changes and build files accordingly | ||
+ | | ||
+ | </ | ||
===== package.json ===== | ===== package.json ===== | ||
<code javascript package.json> | <code javascript package.json> | ||
{ | { | ||
- | | + | |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | }, | + | }, |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | ], |
- | " | + | |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | }, | + | " |
- | " | + | " |
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
} | } | ||
- | |||
</ | </ | ||