patternplate transform to enable usage of css modules.
npm install --save patternplate-transform-cssmodules
// file: configuration/patternplate-server/patterns.js
module.exports = {
formats: {
css: {
name: 'Style',
transforms: ['cssmodules']
}
}
};
// file: configuration/patternplate-server/transforms.js
module.exports = {
cssmodules: {
inFormat: 'css',
outFormat: 'css'
}
};