Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
meixg committed Jan 20, 2021
1 parent 7573a8d commit 8eba500
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/style-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function extractCssResult(content: string, loaderContext: loader.LoaderContext,
return;
}

// __webpack_public_path__ 在下面 eval 的时候会用到
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const __webpack_public_path__ = loaderContext._compiler.options.output?.publicPath || '';
let path = '';

// 这里严重依赖 file-loader 的输出格式:
Expand Down

0 comments on commit 8eba500

Please sign in to comment.