Output a stylesheet analysis report using parker and webpack.
$ npm install parker-loader --save-dev
var css = require('raw!parker!./styles.css');
Or within the webpack config:
module: {
loaders: [{
test: /styles\.css$/,
loader: 'raw!parker?format=md&filename=stylesheet-analysis.md'
}]
}
Specify the report format (defaults to markdown
). See the parker usage docs for other format options.
loaders: [
{
...
loader: 'raw!parker?format=csv&filename=stylesheet-analysis.csv'
}
]
Specify the report filename (defaults to [name]-analysis.md
).
loaders: [
{
...
loader: 'raw!parker?filename=../parker-reports/[name].md'
}
]
$ npm test
MIT