A Java developer with more than three years of working experience, now working on leveraging technology into the financial services.
Blogger, Literary enthusiast, Lifelong learner. 😻
这是我的博客
Home Page: https://janeblog.cn
昨天计划把树洞那个模块改为书单,直接同步github里readList那个repo的内容过去。然后拉下来项目准备改,改的差不多了要发布却发现打包报错。问题大概是版本没有对应上,也看了很久的文章没有很好的解决办法,要么降低uglifyjs-webpack-plugin的version要么升级webpack到V4。昨天一下午的时间没有改掉,今天一上午还是没有改掉。偶尔发现的帖子里po出了解决方案,抱着试一试的态度执行。居然不报错正常打包了。下面贴出执行的两段代码:
npm i [email protected] --save
npm i optimize-css-assets-webpack-plugin@2 --save
下面是那个博客的地址:使用webpack打包进行丑化压缩遇到(TypeError: Cannot read property 'compilation' of undefined)问题
测试一下评论
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.