-
Notifications
You must be signed in to change notification settings - Fork 404
UIKit Refactor Part 2: Migrate Remaining Gulp Tasks Over to Webpack #920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIKit Refactor Part 2: Migrate Remaining Gulp Tasks Over to Webpack #920
Conversation
…update inlined CSS used in iframe srcdoc to get bundled and inlined directly using Webpack
… to using Webpack -- tighter integration and easier coordination of the different steps involved in building Pattern Lab's UI
….js external task now integrated into Webpack build
On to this one @sghoweri ! |
@bmuenzenmeyer I went in and updated this PR branch to pull in the latest code from the dev branch -- should be a lot easier to wrap your head around the net-new changes here! |
@sghoweri started reviewing this - super excited! On first run it complained about output$ npm run build
clean-webpack-plugin: C:\src\patternlab-node\packages\uikit-workshop\dist has been removed. ERROR in ./src/sass/pattern-lab.scss
ERROR in Error: Child compilation failed:
Child HtmlWebpackCompiler:
Child mini-css-extract-plugin node_modules/css-loader/index.js??ref--6-oneOf-1-1!node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!node_modules/clean-css-loader/lib/index.js??ref--6-oneOf-1-3!node_modules/sass-loader/lib/loader.js??ref--6-oneOf-1-4!src/sass/pattern-lab.scss:
|
@bmuenzenmeyer I must have had a cached version of Adding |
Side / related question @bmuenzenmeyer -- thoughts on getting our Travis build set up to test to confirm that the UIKit folder builds successfully? We're already doing something very similar over in the Bolt Design System codebase (testing that PL builds successfully, then using the final artifacts built to deploy branch-specific versions of the code up to Now.sh) -- could be super helpful for us here! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sghoweri this is outstanding work. Thanks so much for taking the time to build it and then also orienting it all in such an approachable reviewable way.
My one nit would be to pin the dependencies - a pattern I am trying to get into more and more after high-profile dependency dot-release problems or vulnerabilities.
yes. Travis already runs
Something like this Brad and I have had in mind for a while, a way to autodeploy the demos on release. I know we can get there when we prioritize it |
@bmuenzenmeyer got it - I'll keep that in mind moving forward! |
…-build-to-webpack UIKit Refactor Part 2: Migrate Remaining Gulp Tasks Over to Webpack
Building off of the groundwork started in #915 (which needs to get merged in before this one), this PR wraps up going through the remainder of the old front-end Gulp build process for Pattern Lab's UIKit and migrates the rest of the build tasks still in use over to one single unified Webpack build.
Or to put it another way, this PR make Pattern Lab's UIKit build process faster, more tightly integrated, and a helluva lot more flexible moving forward! 🎉
High Level Changes
buildDir
directory on every build