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

Support onlyLocals parameters in css-loader #261

Open
Tom910 opened this issue Apr 28, 2020 · 1 comment
Open

Support onlyLocals parameters in css-loader #261

Tom910 opened this issue Apr 28, 2020 · 1 comment

Comments

@Tom910
Copy link

Tom910 commented Apr 28, 2020

if enable onlyLocals in css-loader i get error. onlyLocals remove generation css content in SSR

TypeError: Cannot read property 'length' of undefined
    at CssModule.size (/Users/User/job/platform-cli/node_modules/extract-css-chunks-webpack-plugin/dist/index.js:58:25)
    at Chunk.integratedSize (/Users/User/job/platform-cli/node_modules/webpack/lib/Chunk.js:548:42)
    at orderedChunks.forEach (/Users/User/job/platform-cli/node_modules/webpack/lib/optimize/LimitChunkCountPlugin.js:96:33)
    at Array.forEach (<anonymous>)
    at compilation.hooks.optimizeChunksAdvanced.tap.chunks (/Users/User/job/platform-cli/node_modules/webpack/lib/optimize/LimitChunkCountPlugin.js:92:20)
    at SyncBailHook.eval [as call] (eval at create (/Users/User/job/platform-cli/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:12:16)
    at SyncBailHook.lazyCompileHook (/Users/User/job/platform-cli/node_modules/tapable/lib/Hook.js:154:20)
@ScriptedAlchemy
Copy link
Collaborator

What about modules. IsonlyLocals still valid?

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

2 participants