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

请考虑升级npm-install-webpack-plugin #14

Open
sethzhao opened this issue May 22, 2016 · 1 comment
Open

请考虑升级npm-install-webpack-plugin #14

sethzhao opened this issue May 22, 2016 · 1 comment

Comments

@sethzhao
Copy link

现在的话webpack配置resolve.alias和resolve.root都没有用,会去下载远程包。
后面的版本修复了这个问题。
请看这个issues:
webpack-contrib/install-webpack-plugin#31

@AlexStacker
Copy link

我的解决办法:
修改package.json文件

"start": "dora -p 8001 --plugins \"webpack?disableNpmInstall,hmr,proxy,livereload?enableJs=false&injectHost=127.0.0.1,browser-history?index=/src/entries/index.html\"",

在webpack.config.js文件里增加

  // auto install module
  webpackConfig.plugins.push(new NpmInstallPlugin({
    // Use --save or --save-dev
    save: true,
  }));

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

2 participants