Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ice-scripts 增加run dev的时候输出编译后到资源到lib目录 #2844

Closed
bojoyzhou opened this issue Oct 10, 2019 · 4 comments
Closed
Assignees

Comments

@bojoyzhou
Copy link
Contributor

ice-scripts在dev的时候不会编译输出到lib目录,在需要npm link 联调的场景很不方便,而每次run build 需要大量的时间。 希望支持。

@ClarkXia ClarkXia self-assigned this Oct 10, 2019
@ClarkXia
Copy link
Collaborator

一般场景下在开发组件的时候借助 demo 的能力进行联调,如果要在 dev 的时候输出到 lib,本质上是走watch 文件变更 然后 run build。
可以具体看下是不是有通过 demo 能力调试不能解决的场景。

@imsobear
Copy link
Collaborator

link 的场景需要 watch (src -> lib),应该是这个需求

@bojoyzhou
Copy link
Contributor Author

link 的场景需要 watch (src -> lib),应该是这个需求

是这个意思

@ClarkXia
Copy link
Collaborator

已支持,ice-plugin-component 支持 watch 参数开启监听:

module.exports = {
  injectBabel: 'runtime',
  publicPath: './',
  plugins: [
    'ice-plugin-fusion',
    ['ice-plugin-component', {
      watch: true,
    }],
    ['ice-plugin-moment-locales', {
      locales: ['zh-cn'],
    }],
  ],
};

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

No branches or pull requests

3 participants