Skip to content

Commit

Permalink
Remove replace-ext dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 9, 2019
1 parent d7d79f9 commit 38d691f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -6,7 +6,6 @@ const path = require('path');
const fs = require('fs-extra');
const through2 = require('through2');
const PluginError = require('plugin-error');
const replaceExtension = require('replace-ext');
const {create} = require('./src/core');
const {getOptions} = require('./src/config');

Expand Down Expand Up @@ -76,7 +75,7 @@ function stream(params) {
if (params.inline) {
file.contents = Buffer.from(html);
} else {
file.path = replaceExtension(file.path, '.css');
file.path = file.path.replace(path.extname(file.path), '.css');
file.contents = Buffer.from(css);
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -52,7 +52,6 @@
"postcss-image-inliner": "^3.0.5",
"postcss-url": "^8.0.0",
"prettier": "^1.18.2",
"replace-ext": "^1.0.0",
"slash": "^3.0.0",
"tempy": "^0.3.0",
"through2": "^3.0.1",
Expand Down

0 comments on commit 38d691f

Please sign in to comment.