patternplate-transform-styled-components
v1.0.1
Published
Serverside rendering for styled-components in patternplate
Downloads
4
Readme
Serverside rendering for styled-components styled patternplate patterns
patternplate-transform-styled-components
Installation
npm install --save [email protected]
npm install --save-dev patternplate-transform-styled-components
Usage
// configuration/patternplate-server/transforms.js
module.exports = {
'styled-components': {
inFormat: 'js',
outFormat: 'js'
},
'react-to-markup': {
inFormat: 'js',
outFormat: 'html',
opts: {
automount: true
}
}
};
// configuration/patternplate-server/pattern.js
module.exports = {
formats: {
js: {
transforms: ['babel', 'styled-components', 'react-to-markup']
}
}
};
Built by (c) Mario Nebl. Released under the MIT license.