Skip to content

Commit 286029b

Browse files
committed
Fix css resolving
1 parent 69790eb commit 286029b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plain-blog/lib/utils/processClientScripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function processClientScripts(scripts, config, assetsDir, assetsP
6666
setup(build) {
6767
build.onResolve({ filter: /\.css$/ }, (args) => {
6868
return {
69-
path: path.join(args.resolveDir, args.path),
69+
path: require.resolve(args.path, { paths: [args.resolveDir] }),
7070
namespace: 'inline-css-ns',
7171
};
7272
});

plain-blog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plain-blog",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"type": "module",
55
"bin": {
66
"plain-blog": "./bin/plain-blog.js"

0 commit comments

Comments
 (0)