Comments (2)
我也是同样的问题,本地demo报错
[email protected] dev /Users/xjc/my-project/h5demo-master
webpack-dev-server --devtool eval --config webpack.config.js --progress --hot --content-base src
/Users/xjc/my-project/h5demo-master/node_modules/webpack/lib/webpack.js:159
throw new RemovedPluginError(errorMessage);
^
Error: webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead.
at Object.get [as UglifyJsPlugin] (/Users/xjc/my-project/h5demo-master/node_modules/webpack/lib/webpack.js:159:10)
at Object. (/Users/xjc/my-project/h5demo-master/webpack.config.js:3:41)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at WEBPACK_OPTIONS (/Users/xjc/my-project/h5demo-master/node_modules/webpack-cli/bin/convert-argv.js:133:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: webpack-dev-server --devtool eval --config webpack.config.js --progress --hot --content-base src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xjc/.npm/_logs/2018-03-01T05_37_49_368Z-debug.log
from h5demo.
@ iloveyo123u1 demo演示地址应该是可以访问的了
@chengnuo 你是不是了最新的webpack 4了, 语法不一样了,你可以自己修改一下webpack的配置,
By default in dev mode webpack 4 won't minimize js, this is to speed up development. As soon as you switch mode to production or use the -p while running webpack it will automatically minimize your JS there is no need for uglifyjs setup anymore in webpack 4.
可参考
https://stackoverflow.com/questions/49041167/correct-way-to-use-minimize-javascript-in-webpack-config-js
from h5demo.
Related Issues (20)
- 请问如何自定义取消全屏的按钮 HOT 3
- 2.2以后更换了vid+playauth的播放地址 HOT 3
- 横竖屏切换 HOT 1
- 多码率如何实现? HOT 1
- 关于Android端无法自动播放问题 HOT 2
- hybird app内如何使用JS禁止IOS播放即自动全屏的行为? HOT 11
- 移动端视频自动播放失效了么? HOT 5
- 关于播放器的配置 HOT 3
- demo的代码呢 ?怎么看不到了? ios11全屏播放会退不出来怎么解决啊 HOT 1
- aliplayer音频在微信内播放,会自动弹出全屏播放,怎么取消全屏播放啊? HOT 1
- 安卓端 微信浏览器里面 怎么切换播放倍速
- 使用QQ浏览器播放视频还是会进入全屏
- H5在iframe框架内无法全屏 HOT 2
- aliplayer2.0版本的bug· HOT 3
- 安卓手机在微信浏览器里播放视频时第一次打开不能自动播放,需要点击播放按钮 HOT 1
- 新版本播放中不会自动隐藏控件 HOT 2
- 在微信中使用同层播放,input获取焦点之后,同层播放就失效了 HOT 1
- 微信中,先点击全屏,再点击播放按钮,视频黑屏不显示,只能听见声音 HOT 1
- 微信里开始播放后tab不能点击了 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5demo.