You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a CSS entry point is added to package.json, webpack generates an empty .js file. For example, adding the entry "style": "./assets/css/style.css" outputs css/style.css 20 bytes js/style.js 0 bytes.
Describe the bug
When a CSS entry point is added to package.json, webpack generates an empty .js file. For example, adding the entry
"style": "./assets/css/style.css"
outputscss/style.css 20
bytesjs/style.js 0 bytes
.More info about this can be read in the issues webpack-contrib/mini-css-extract-plugin#151 and webpack-contrib/extract-text-webpack-plugin#518.
Steps to Reproduce
npm init
npm install --save-dev 10up-toolkit
style.css
andstyle.js
Expected behavior
Empty scripts removed from output.
Screenshots
Environment information
Site Health Info:
Additional context
A possible workaround is importing CSS file into a JS file. However, there are cases when CSS doesn't have a correspondent JS file.
The text was updated successfully, but these errors were encountered: