webpack-blocks: PostCSS block with SASS and sourceMap
Adding sass({sourceMap: true})
produces error:
TypeError: Path must be a string. Received undefined
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 30 (29 by maintainers)
Commits related to this issue
- Add e2e regression test for #116 — committed to andywer/webpack-blocks by deleted user 7 years ago
- Fix #116 — committed to andywer/webpack-blocks by deleted user 7 years ago
I commented out everything unrelated and narrowed to these lines:
So seems probably not SASS/LESS should have additional plugin, but postcss 😃
https://github.com/kirill-konshin/react-ssr-playground/tree/master/webpack-blocks you can use my playground, it has the less block from https://github.com/andywer/webpack-blocks/pull/114 where I checked the behavior too.
I’ve added the following and it fixed the issue: