Skip to content

Commit

Permalink
Merge pull request #42 from qiuyuntao/master
Browse files Browse the repository at this point in the history
feat:keep webpack alias and plugins instead of create new
  • Loading branch information
jaredleechn committed Apr 18, 2017
2 parents dbc3775 + bf50890 commit cca344d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atool-doc",
"version": "0.7.4",
"version": "0.7.5",
"description": "Static demo site generator based on atool-build & dora.",
"keywords": [
"atool",
Expand Down
4 changes: 2 additions & 2 deletions src/getWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ export default function (source, asset, dest, cwd, tpl, config) {
webpackConfig.demoSource = source;

webpackConfig.resolve.root = cwd;
webpackConfig.resolve.alias = {
webpackConfig.resolve.alias = Object.assign({}, webpackConfig.resolve.alias, {
[`${pkg.name}$`]: join(cwd, 'index.js'),
[pkg.name]: cwd,
};
});

webpackConfig.resolve.modulesDirectories.push(join(root, 'node_modules'));
webpackConfig.resolveLoader.modulesDirectories.push(join(root, 'node_modules'));
Expand Down

0 comments on commit cca344d

Please sign in to comment.