问题所在
vue2打包时遇到的Error: CSS minification error:css\chunk-bac522ec.172852655309.css:2406:12: Unknown word.
error in ./node_modules/.store/@babylonjs+core@6.49.0/node_modules/@babylonjs/core/PostProcesses/volumetricLightScatteringPostProcess.js
Module parse failed: Unexpected token (89:23)
You may need an appropriate loader to handle this file type.
| */
| this.density = 0.926;
> scene = camera?.getScene() ?? scene ?? this._scene; // parameter "scene" can be null.
| engine = scene.getEngine();
| this._viewPort = new Viewport(0, 0, 1, 1).toGlobal(engine.getRenderWidth(), engine.getRenderHeight());
@ ./node_modules/.store/@babylonjs+core@6.49.0/node_modules/@babylonjs/core/PostProcesses/index.js 30:0-58 30:0-58
@ ./node_modules/.store/@babylonjs+core@6.49.0/node_modules/@babylonjs/core/index.js
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/threeDimension/index.vue?vue&type=script&lang=js&
@ ./src/views/threeDimension/index.vue?vue&type=script&lang=js&
@ ./src/views/threeDimension/index.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.2.114:39528/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
Warning: 129 repetitive deprecation warnings omitted.
ERROR Error: CSS minification error: E:\zhijie\视频平台Web客户端\trunk\client\frontend\aqgkFile\static\css\chunk-bac522ec.1728526553049.css:2406:12: Unknown word. File: aqgkFile/static/css/chunk-bac522ec.1728526553049.css
Error: CSS minification error: E:\zhijie\视频平台Web客户端\trunk\client\frontend\aqgkFile\static\css\chunk-bac522ec.1728526553049.css:2406:12: Unknown word. File: aqgkFile/static/css/chunk-bac522ec.1728526553049.css
at E:\zhijie\视频平台Web客户端\trunk\client\frontend\node_modules\@intervolga\optimize-cssnano-plugin\index.js:106:21
处理办法