presets icon indicating copy to clipboard operation
presets copied to clipboard

[Question] Is there way to enable source maps?

Open PawelGIX opened this issue 3 years ago • 0 comments

Is there a way to enable source maps on SASS addon? EDIT: I will answer myself. BTW it would be good if this was the default option.

module.exports = {
  "stories": [
    "../stories/**/*.stories.mdx",
    "../stories/**/*.stories.@(js|jsx|ts|tsx)"
  ],
  "addons": [
    "@storybook/addon-links",
    "@storybook/addon-essentials",
    {
        name: '@storybook/preset-scss',
        options: {
          cssLoaderOptions: {
            sourceMap: true,
          }
        }
    },
  ]```

PawelGIX avatar Mar 07 '21 19:03 PawelGIX