things-factory / shell

things app starter kit
MIT License
3 stars 0 forks source link

workbox-webpack-plugin 5.0.0 적용 #41

Closed heartyoh closed 4 years ago

lotstar87 commented 4 years ago

workbox-webpack-plugin v5 cause this error;

ERROR in You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

추가
webpack.config.js에 sourcemap을 설정하면 위와 같은 에러가 발생함.

lotstar87 commented 4 years ago

source-map 에러를 피하기 위해 source map을 cheap-module-source-map -> eval-cheap-module-source-map으로 변경.

변경 후, workbox-precache가 작동하지 않음 (파일 사이즈 제한 초과로 인해...)