532f1beb02
* Fix "colleciton" typo * Fix "fomatting" typo * Fix "elments" typo * Fix "actuall" typo * Fix "witth" typo * Fix "varation" typo * Fix "procesing" typo * Fix "neigbouring" typo * Fix "staticly" typo * Fix "Curreny" typo * Fix "addd" typo * Fix "accessibile" typo * Fix "avaiable" typo * Fix "Resurce" typo * Fix "curent" typo * Fix "flakyness" typo * Fix "flakyness" typo * Fix "Shiping" typo * Fix "specfically" and "Shiping" typos * Fix "flakyness" typo * Fix "avaliable" typo * Fix "availble" typo * Fix "oject" typo * Fix "explict" typo * Fix "sumary" typo * Fix "whn" typo * Fix "normaly" typo * Add changelog files |
||
---|---|---|
.. | ||
abstracts | ||
changelog | ||
.eslintrc.js | ||
.npmrc | ||
README.md | ||
index.js | ||
package.json | ||
style-asset-plugin.js |
README.md
Style Build Helper
This is a partial Webpack config for building WooCommece component styles using base styles from Gutenberg. It is used to replace the bin/packages/build.js
script.
Usage
Create a webpack.config.js
in your package root that defines the entry
and output
, making use of the rules
and plugins
from @woocommerce/internal-style-build
.
Note: The entry
should be named 'build-style'
so the CSS will get picked up by the main client/
application's CopyWebpackPlugin
config.
// packages/<package-name>/webpack.config.js
import { webpackConfig } from '@woocommerce/internal-style-build';
module.exports = {
mode: process.env.NODE_ENV || 'development',
entry: {
'build-style': __dirname + '/src/style.scss',
},
output: {
path: __dirname,
},
module: {
rules: webpackConfig.rules,
},
plugins: webpackConfig.plugins,
};