Skip to content

Commit b9302ad

Browse files
Bug fix so rollup-plugin-vue works with PostCSS
Apologies if this isn't a good fix. It works for me, but it's entirely possible there is a better solution. I seem to notice in older versions of the plugin, the css files has .css extensions and now they do not. Perhaps this was the source of the issue, or I am completely wrong and the files never had .css. Hope this helps. vuejs#241
1 parent 5d8aa49 commit b9302ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ export default function VuePlugin(opts: VuePluginOptions = {}): Plugin {
173173
return require.resolve(src, { paths: [path.dirname(ref.filename)] })
174174
}
175175
}
176+
else if(ref.meta.type === 'styles') {
177+
return id.replace('.vue', '.vue.css');
178+
}
176179

177180
return id
178181
}

0 commit comments

Comments
 (0)