`style` attribut in package.json
dtothefp opened this issue · comments
David Fox-Powell commented
I read in webpack-postcss-tools
repo webpack.config.js
about a style
attribute in package.json
SUIT projects. I saw this in your project "style": "theme.css"
and I'm wondering what it does?
Simon Smith commented
I believe this is the equivalent of the main
property so that when you require the package the tool in question (used to be rework-npm
) knows what file to import. Basically you can just give webpack a list of properties to look at for getting a reference to the CSS file.
Most SUIT packages make use of an index.js
to achieve this now.