Skip to content

Commit aaa3ca1

Browse files
authored
Merge pull request #38 from mohsenshafiei/fix/hmr
fix: remove prevStyle and make newStyle.
2 parents 439042d + 358a9f3 commit aaa3ca1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plugins/postcss-module-composer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ const {
1212
shouldSkip,
1313
} = require('./utils');
1414

15-
const mainDist = path.resolve(__dirname, '../../dist/quark-loader-output.css');
16-
const main = fs.createWriteStream(mainDist);
15+
1716
module.exports = postcss.plugin('postcss-module-composer', () => (root) => {
17+
const mainDist = path.resolve(__dirname, '../../dist/quark-loader-output.css');
18+
const main = fs.createWriteStream(mainDist);
1819
const hashmap = new HashMap();
1920
let composerString = '';
2021
let consumerString = '';

0 commit comments

Comments
 (0)