Skip to content

Commit

Permalink
Merge pull request #34 from drolsen/dev
Browse files Browse the repository at this point in the history
DEV 1.6.0 Release
  • Loading branch information
drolsen authored Oct 25, 2024
2 parents 4718a2b + c0553ad commit d3a8dd3
Show file tree
Hide file tree
Showing 4 changed files with 1,648 additions and 981 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: node_js
node_js:
- '14.17.0'
- '18.17.0'
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const POSTCSS = require('postcss');
const { sources } = require('webpack');
const { sources, Compilation } = require('webpack');

class POSTCSSInOut {
constructor(options) {
Expand Down Expand Up @@ -68,16 +68,16 @@ class POSTCSSInOut {
compilation.hooks.processAssets.tap(
{
name: 'POSTCSSInOut',
stage: compilation.PROCESS_ASSETS_STAGE_ADDITIONS // see below for more stages
stage: Compilation.PROCESS_ASSETS_STAGE_ADDITIONS // see below for more stages
},
(assets) => {
Object.keys(assets).map((i) => {
for (let i in assets) {
if (i.indexOf('.css') !== -1) {
this.processPostBuild(assets[i]._source._children, (results) => {
compilation.updateAsset(i, new sources.RawSource(results));
});
}
});
}
}
)
});
Expand All @@ -87,4 +87,4 @@ class POSTCSSInOut {
}
}

module.exports = POSTCSSInOut;
module.exports = POSTCSSInOut;
Loading

0 comments on commit d3a8dd3

Please sign in to comment.