DEV Community

Discussion on: Use Tailwind CSS v2.0 with Rails

Collapse
 
greegus profile image
Matúš Duchoň • Edited

Actually, setting from option did break @import rules in my project. I was able to sort it out by omitting it and also disabling the source map generation. Although, this might be a very project-specific issue.


if (item.options) {
  item.options.sourceMap = false
  delete item.options.config
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ranjanpurbey profile image
Ranjan Purbey

Glad you're able to resolve the issue. from option is needed for source map generation and in a rails project defaults to the project root. However more info will be needed to debug the issue if you do need to enable source maps