Skip to content
This repository has been archived by the owner on Dec 12, 2017. It is now read-only.

cooking可否自定义设置devtool? #130

Closed
yelingfeng opened this issue Dec 20, 2016 · 3 comments
Closed

cooking可否自定义设置devtool? #130

yelingfeng opened this issue Dec 20, 2016 · 3 comments

Comments

@yelingfeng
Copy link

development模式默认是eval-source-map
想修改sourcemap方式
例如
cooking.add("devtool","cheap-module-source-map")

看了下源码 貌似写死了?

@QingWei-Li
Copy link
Contributor

我没记错的话 sourceMap 支持字符串的

cooking.set({
  sourceMap: 'cheap-module-source-map'
})

@yelingfeng
Copy link
Author

我设置了但是 为啥编译的app.js 为啥还是eval的
image

@QingWei-Li
Copy link
Contributor

fixed in 1.2.11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants