git clone [email protected]:eGovPDX/portland-pattern-lab.git
cd portland-pattern-lab
npm install
Both commands must be running in order to watch for changes.
npm run pl:dev # build patterns and start Pattern Lab server
npm run webpack:dev # compile sass and run the browsersync dev server
We publish the CSS and JS files with our patterns, so if you want to make sure that you are correctly including just what you need for the CSS and JS assets, you'll need to run the following commands:
npm run pl:build # make sure the patterns are updated
npm run webpack:build # minify and purge asset files