Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Use style field in package.json #51

Closed
SimenB opened this issue May 10, 2015 · 14 comments
Closed

[Discussion] Use style field in package.json #51

SimenB opened this issue May 10, 2015 · 14 comments

Comments

@SimenB
Copy link
Contributor

SimenB commented May 10, 2015

Like https://github.com/rotundasoftware/parcelify

E.g. I have @import url("~nanoscroller"); in my css. I expect that to use the style field in that package's package.json. Instead, that module's JS was included in my css.

@mmrko
Copy link
Contributor

mmrko commented Oct 18, 2015

+1

1 similar comment
@namjul
Copy link

namjul commented Oct 28, 2015

+1

koistya pushed a commit to koistya/css-loader that referenced this issue Nov 19, 2015
…dia-queries

[webpack-contrib#39] Don't use styleSheet to store state of css text
@Matt-Butler
Copy link

+1

2 similar comments
@misterjt
Copy link

misterjt commented Apr 8, 2016

+1

@bjankord
Copy link

+1

@hershmire
Copy link

Is there any talk on supporting this in Webpack?

@DataTables
Copy link

Would one of the authors of this package be willing to suggest how they would suggest go about approaching this? I'm willing to give it a ago, since as a library author myself, this will make my distribution documentation much easier.

One thing that I'm not clear on though is what is require('myModule')'s package.json contains both a main and a style property. My feeling is that it should pull in both the CSS and the JS...

@springuper
Copy link

+1

@michael-ciniawsky
Copy link
Member

ping @jonathantneal :)

@michael-ciniawsky michael-ciniawsky changed the title Use style field in package.json [Discussion] Use style field in package.json Mar 6, 2017
@roman-vanesyan
Copy link

Any updates on the thread?

@just-boris
Copy link

I can confirm. The feature is available at least since Webpack 3.5.1 with is currently used in Create-react-app.

@DataTables
Copy link

@just-boris - I don't see css-loader in the create-react-app dependencies. I'm trying to get it working and if they are using it, I might be able to follow along as an example.

@d3viant0ne - Could you possibly confirm why this was closed? Has it been implemented now - I don't see anything in the recent commits related to it, but I might just be missing it. Or was it closed as this feature not going to be implemented?

@vidartf
Copy link

vidartf commented May 23, 2019

Xref #683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests