Skip to content

Commit

Permalink
Reapply indentions
Browse files Browse the repository at this point in the history
  • Loading branch information
faebeee committed Mar 20, 2019
1 parent cbab44d commit 0352d5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ module.exports = postcss.plugin('postcss-extract-media-query', opts => {
if (opts.output.path) {

const newFile = opts.output.name
.replace(/\[name\]/g, name)
.replace(/\[query\]/g, key)
.replace(/\[ext\]/g, ext)
.replace(/\[name\]/g, name)
.replace(/\[query\]/g, key)
.replace(/\[ext\]/g, ext)

const newFilePath = path.join(opts.output.path, newFile);

Expand All @@ -97,8 +97,8 @@ module.exports = postcss.plugin('postcss-extract-media-query', opts => {

if (opts.minimize === true) {
const newRootMinimized = postcss([ csswring() ])
.process(newRoot.toString(), { from: newFilePath })
.root;
.process(newRoot.toString(), { from: newFilePath })
.root;
fs.outputFileSync(newFilePath, newRootMinimized.toString());
} else {
fs.outputFileSync(newFilePath, newRoot.toString());
Expand Down

0 comments on commit 0352d5b

Please sign in to comment.