Change SASS processing pipeline to match h, lms projects
Change the SASS processing pipeline to match the h and lms projects. The purpose of this is cross-project consistency for easier maintenance, consistent processing of SASS files from the upcoming pattern library and to enable us to use the new SASS module system [1] The main changes are: - Use Dart Sass (the canonical SASS implementation) instead of node-sass. This removes a native dependency which occassionally causes build headaches (eg. when the installed Node version changes) and will also enable us to make use of the new SASS module system. - Use a small utility module, `create-style-bundle.js`, that calls the SASS compiler directly instead of using gulp plugins. This simplifies understanding the build process by removing dependencies and is consistent with the h and lms projects. This module was copied from the hypothesis/lms repo and modified to add the `postcss-url` URL rewriting plugin that the previous gulp-sass based pipeline had. [1] http://sass.logdown.com/posts/7858341-the-module-system-is-launched
Showing
... | ... | @@ -64,7 +64,6 @@ |
"gulp-postcss": "^8.0.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-replace": "^1.0.0", | ||
"gulp-sass": "^4.0.2", | ||
"gulp-sourcemaps": "^2.6.4", | ||
"gulp-util": "^3.0.7", | ||
"hammerjs": "^2.0.4", | ||
... | ... | @@ -99,6 +98,7 @@ |
"request": "^2.76.0", | ||
"reselect": "^4.0.0", | ||
"retry": "^0.12.0", | ||
"sass": "^1.23.0", | ||
"scroll-into-view": "^1.8.2", | ||
"seamless-immutable": "^7.1.4", | ||
"shallowequal": "^1.1.0", | ||
... | ... |
Please register or sign in to comment