diff --git a/index.js b/index.js index 48c1026..fa4178f 100644 --- a/index.js +++ b/index.js @@ -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); @@ -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());