Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Can not use sass-loader with storybook? #1204

Closed
YahngSungho opened this issue Nov 11, 2018 · 2 comments
Closed

Can not use sass-loader with storybook? #1204

YahngSungho opened this issue Nov 11, 2018 · 2 comments
Labels

Comments

@YahngSungho
Copy link

I asked at #1066 that I can not use sass-loader, and thankfully, I got a well-explained answer. And after fixing all the points indicated in the answer, I got 'Build completed' from the terminal when I executed 'neutrino start'.

However, when I run it using storybook, It still could not parse sass / scss. Could not I ever get the files loaded correctly when using storybook?

This is a repo that's fixed the points indicated in the answer:
https://github.com/YahngSungho/dfsfdsfsfdsfwfsd/tree/help_style_loader

@edmorley
Copy link
Member

Hi!

I tried the testcase, however it doesn't appear to be complete. ie when I run yarn start and visit http://localhost:5000 the page is blank, and inspecting the dom shows nothing but the default template HTML.

It looks like this setup is missing:
https://storybook.js.org/basics/guide-react/#create-the-config-file

That said, reading up on storybook it seems to have it's own webpack/webpack-dev-server configuration after all? There are also suggestions on how to integrate it with a custom config here:
https://storybook.js.org/configurations/custom-webpack-config/

If you want to use a custom webpack config (ie not the one they provide), perhaps you might find it easier to use Neutrino 9? (currently in beta but very stable and about to be final). It has an improved API for accessing the generated webpack config, so allows for creating webpack.config.js files that could be used with storybook.

Beyond that this seems more in the realm of Storybook support rather than Neutrino support? Though please let me know if I'm missing something (without specific steps to reproduce alongside your testcase repository, it's hard to tell what's not working).

@edmorley
Copy link
Member

edmorley commented Jan 4, 2019

Closing for inactivity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants