我正在
来自UglifyJs的SyntaxError:意外的标记:punc(。)
在angular2-webpack上运行npm run build时出现错误
这是来自传播运营商。
尝试在不到1小时内演示项目.... FML
答案 0 :(得分:-1)
将目标从ES6更改为ES5可能会有所帮助。但是,我能够找到更可靠的解决方案来利用ES6的优势。
只需在package.json中指定UglifyJs,然后让npm处理依赖项。
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
WHITELIST tcp -- anywhere anyrhere tcp dpt:ssh
tcp -- anywhere anywhere tcp dpt:ssh state NEW recent: SET name: DEFAULT side: source
LOG all -- anywhere anywhere recent: UPDATE seconds: 30 hit_count: 6 name: DEFAULT side: source LOG level warning
DROP all -- anywhere anywhere recent: UPDATE seconds: 30 hit_count: 6 name: DEFAULT side: source
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh state NEW
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain WHITELIST (1 references)
target prot opt source destination
RETURN all -- 192.168.0.0/24 anywhere
RETURN all -- 192.168.1.0/24 anywhere
RETURN all -- 192.168.2.0/24 anywhere
RETURN all -- 192.168.3.0/24 anywhere
DROP all -- anywhere anywhere
答案 1 :(得分:-3)
原来这个修复非常简单。
tsconfig.json中的更改
"target": "ES6"
到
"target": "ES5"