This repo can be used to integrate the CUBE CSS Boilerplate into a Sage project. See "A CSS project boilerplate" by Andy Bell for an explaination of this methodology.
You can install this package with Composer:
composer require csorrentino/sage-cube-boilerplate
If it's a brand new project, you can delete app.css and tailwind.config.js before publishing the resources.
If you've already started working on a project you'll want to look at publishes/resources/styles/app.css
and publishes/tailwind.config.js
to incorporate the changes manually.
$ wp acorn vendor:publish --provider="Csorrentino\SageCubeBoilerplate\Providers\SageCubeBoilerplateServiceProvider"
In your bud.config.js
file, you'll need to add this for postcss-import-ext-glob to run in the correct order:
/**
* Add postcss plugins
*
* @see {@link https://bud.js.org/extensions/bud-postcss#adding-a-plugin}
*/
app.postcss
.setPlugin('postcss-import-ext-glob')
.use((plugins) => ['postcss-import-ext-glob', ...plugins]);
- postcss-js
- postcss-imort-ext-glob
- slugify
You can install these in your Sage theme with:
$ yarn add postcss-js postcss-import-ext-glob slugify -D