From 7843ae908b6f8dda5f8c26fbea931386e2742a26 Mon Sep 17 00:00:00 2001 From: pengrui3 Date: Mon, 17 May 2021 11:37:22 +0800 Subject: [PATCH] fix: update styleinject path to absolute --- src/postcss-loader.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/postcss-loader.js b/src/postcss-loader.js index bbac026c..84b8af8c 100644 --- a/src/postcss-loader.js +++ b/src/postcss-loader.js @@ -6,9 +6,7 @@ import { identifier } from 'safe-identifier' import humanlizePath from './utils/humanlize-path' import normalizePath from './utils/normalize-path' -const styleInjectPath = require - .resolve('style-inject/dist/style-inject.es') - .replace(/[\\/]+/g, '/') +const styleInjectPath = 'style-inject' function loadConfig(id, { ctx: configOptions, path: configPath }) { const handleError = err => {