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

强依赖 atool-build 的第三方工具升级问题 #292

Open
soda-x opened this issue May 24, 2017 · 1 comment
Open

强依赖 atool-build 的第三方工具升级问题 #292

soda-x opened this issue May 24, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@soda-x
Copy link

soda-x commented May 24, 2017

例如外部有 : atool-doc atool-test 等

在原先设计中为了确保构建和调试代码的一致性会暴露整个构建配置同时允许其进行函数式变更。这个部分可能会涉及变更,如何进行调整?

@soda-x soda-x added this to the 1.0.0 milestone May 24, 2017
@jaredleechn
Copy link
Member

doc 对 build 的依赖主要是通过对 webpackConfig 进行额外修改完成的

{
  entry: replace,
  output.path: replace,
  resolve.root: replace,
  resolve.alias: merge,
  resolve.modulesDirectories: push,
  module.loaders: modify with replace(
    /^.*extract-text-webpack-plugin(@\d+(\.\d+)+)?\/loader.js((?!!).)*!/,
    'style!'
  ),
  module.preLoaders: push,
  plugins: push,
  externals: replace,
}

新版的 build 如果有其他的方式来方便继承原油配置并实现掉以上这些额外配置,就很好操作了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
atool-build@1.0.0
Awaiting triage
Development

No branches or pull requests

2 participants