Solution:
in the output of the webpack.prod.conf.js files
Modify path:config.build.assetsRoot
to publicPath: './
Iconfont file path issue is solved after packaging
Read More:
- Vue-cli2 sub environment packaging
- How to Solve Webpack packag iconfont font error
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- OTS parsing error: invalid version tag [How to Solve]
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- After Vue is packaged to the server, the static resource path reports an error
- How to introduce iconfont into uni-app
- package.json Scripts configuration environment variable distinguishes development environment from production environment
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- npm ERR code ELIFECYCLE [How to Solve]
- [Solved] Vue calls style loader error: Module build failed: CssSyntaxError
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- Vue Package Image Error: Syntax Error: Error: ‘**\node_modules\pngquant-bin\vendor\pngquant.exe‘
- [Solved] electron project Package Error: spawn exe\dll ENOENT
- [Solved] Vue Use gzip Package Error: Rule can only have one resource source
- How to Solve Vue loading 3D model Error
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- ‘webpack dev server’ is not an internal or external command, nor is it a runnable program or batch file. Solution: error in cnpm run dev:
- vue.config.js build Package UglifyJsPlugin to clear console and print console.log Error: `warnings` is not a supported option
- [Solved] Vue Error: Error: Rule can only have one resource source (provided resource and test + include + ex