Skip to content

Commit

Permalink
🐛 Configure cssnano to avoid filesystem lookups for config files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrv committed Jul 4, 2019
1 parent 3efd194 commit 10d67ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export class PostBuilder {

constructor(public config: PostConfig) {
if(config.minify) {
this.pluginList.push(cssnano());
this.pluginList.push(cssnano({
preset: 'default'
}));
}
}

Expand Down

0 comments on commit 10d67ed

Please sign in to comment.