You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.
processHtml
Until now we had *.bundle.js in dev mode and *.bundle.min.js in prod mode. Same for CSS.
I think this is a relict from the past and we don’t need it.
validateHtml
There is only one Node.js CLI wrapping the official »Nu Html Checker«. Sadly we can’t use it straight away because of our Windows compatability. There is no cross OS way to pass output of one CLI as parameter to another. This is needed because the path to the HTML files we’d like to validate differ if one uses Handlebars or not. On Mac OS / Linux we could easily to one of the following npm scripts:
Improve vendor bundle splitting.
Right now the vendor files are defined via the dependencies section of the package.json.
This is super comfortable as webpack ist importing the main file of the dependencies package.json and you don’t need to import any file. But this way you always import a whole library instead of cherry picking just what you need which might have performance impacts. The vendor bundle is 50.08 kb by default (consisting of jQuery, bootstrap and popper.js)
Notify if linting errors happen
There are no webpack-plugins or loaders for each and every linting tool we use
Plus having linting errors shown in the webpack overlay can be pretty annoying
Therefor linting errors are only shown in the terminal output when using the dev server and might escape ones notice
I’m thinking about a thin wrapper around node-notifier to accomplish that.
Improve bundling polyfills.
After improving the vendor bundling, the polyfills land in the vendor bundle. It would be nice to have a polyfills bundle which is loaded via a dynamic import and lazy loads only the polyfills which are needed for the current browser.
We need to replace the following tasks:
processHtmlUntil now we had *.bundle.js in dev mode and *.bundle.min.js in prod mode. Same for CSS.
I think this is a relict from the past and we don’t need it.
lintBootstrapIt doesn’t make sense to integrate Bootlint for now since Bootlint currently only supports Bootstrap 3. See E013 Only columns (
.col-*-*
) may be children of.row
s - not only! twbs/bootlint#377 (comment) / My go at adding (some) Bootstrap 4 support twbs/bootlint#410 (comment)validateHtmlThere is only one Node.js CLI wrapping the official »Nu Html Checker«. Sadly we can’t use it straight away because of our Windows compatability. There is no cross OS way to pass output of one CLI as parameter to another. This is needed because the path to the HTML files we’d like to validate differ if one uses Handlebars or not. On Mac OS / Linux we could easily to one of the following npm scripts:
html-files.js
is just this little script which outputs the current path to the HTMl files:Additional To Dos:
bundleExternalJS
is obsolet.baumeister.json
. Replacing UnCSS.baumeister.json
.Improvements:
Right now the vendor files are defined via the
dependencies
section of thepackage.json
.This is super comfortable as webpack ist importing the
main
file of the dependenciespackage.json
and you don’t need to import any file.But this way you always import a whole library instead of cherry picking just what you need which might have performance impacts. The vendor bundle is 50.08 kb by default (consisting of jQuery, bootstrap and popper.js)
After improving the vendor bundling, the polyfills land in the vendor bundle. It would be nice to have a polyfills bundle which is loaded via a dynamic import and lazy loads only the polyfills which are needed for the current browser.
The text was updated successfully, but these errors were encountered: