1.1.6 • Published 8 years ago

parker-loader v1.1.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

parker-loader

build status npm version npm downloads

Output a stylesheet analysis report using parker and webpack.

Installation

$ npm install parker-loader --save-dev

Usage

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'
  }]
}

Options

format

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'
  }
]

filename

Specify the report filename (defaults to [name]-analysis.md).

loaders: [
  {
    ...
    loader: 'raw!parker?filename=../parker-reports/[name].md'
  }
]

Tests

$ npm test

License

MIT

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.4

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago