Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,21 @@ To disable any CSS build entirely, use the configuration option `buildCSS`:

CSS requires will then be left in the source "as is". This shouldn't be used with `stubModules`.

### Disabling CSS Optimization

To disable CSS optimization of the built CSS, use the `optimizeRequireCSS` option:

```javascript
{
optimizeRequireCSS: false,
modules: [
{
name: 'mymodule'
}
]
}
```

CSS Compression
---------------

Expand Down
2 changes: 1 addition & 1 deletion css-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(['require', './normalize'], function(req, normalize) {
var isWindows = !!process.platform.match(/^win/);

function compress(css) {
if (config.optimizeCss == 'none') {
if (config.optimizeRequireCSS===false) {
return css;
}

Expand Down