egoist / rollup-plugin-postcss

Seamless integration between Rollup and PostCSS.
MIT License
677 stars 217 forks source link

编译css文件失败 #451

Open MeetQin opened 1 year ago

MeetQin commented 1 year ago

在rollup中使用glob包将源目录的js文件都设置为入口文件,然后就会编译失败 [!] (plugin postcss) TypeError: Cannot read property 'modules' of undefined

MeetQin commented 1 year ago

postcss({ plugins: [ autoprefixer(), cssnano() ], // 抽离为单独的css文件 extract: 'less/index.less', extensions: ['.css', '.less'], include: ['*/.less'], }), 这个是我的配置文件

MeetQin commented 1 year ago

在阅读代码的时候发现了,会去读取源目录中的js文件导致失败

MeetQin commented 1 year ago

希望能尽快给一个答复