Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Commit 32835b9

Browse files
committed
update to purgecss 1.0.0
- use raw instead of stdin - run build
1 parent c0bd9d1 commit 32835b9

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

lib/purgecss-webpack-plugin.es.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ var PurgecssPlugin = function () {
195195
// This loses sourcemaps should there be any!
196196
var options = _extends({}, _this.options, {
197197
content: filesToSearch,
198-
css: [asset.source()],
199-
stdin: true
198+
css: [{
199+
raw: asset.source()
200+
}]
200201
});
201202
if (typeof options.whitelist === 'function') {
202203
options.whitelist = options.whitelist();

lib/purgecss-webpack-plugin.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ var PurgecssPlugin = function () {
199199
// This loses sourcemaps should there be any!
200200
var options = _extends({}, _this.options, {
201201
content: filesToSearch,
202-
css: [asset.source()],
203-
stdin: true
202+
css: [{
203+
raw: asset.source()
204+
}]
204205
});
205206
if (typeof options.whitelist === 'function') {
206207
options.whitelist = options.whitelist();

src/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ export default class PurgecssPlugin {
5858
const options = {
5959
...this.options,
6060
content: filesToSearch,
61-
css: [asset.source()],
62-
stdin: true
61+
css: [{
62+
raw: asset.source()
63+
}]
6364
}
6465
if (typeof options.whitelist === 'function') {
6566
options.whitelist = options.whitelist()

0 commit comments

Comments
 (0)