Skip to content

Commit

Permalink
chore: forget about 'npm link', back workaround with aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
hhjcz committed Sep 1, 2016
1 parent 495a802 commit d5af5b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/server/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ const prefixLoaders = 'style-loader!css-loader!postcss-loader'
export default function(app) {

const resolveAliases = {
// required when using 'npm link' to prevent duplicated react
'react': path.resolve('./', 'node_modules/react'),
// '@hhjcz/js-lib/lib': path.resolve('./my_libs', 'js-lib'),
// '@hhjcz/js-lib': path.resolve('./my_libs', 'js-lib'),
'@hhjcz/js-lib/lib': path.resolve('./my_libs', 'js-lib'),
'@hhjcz/js-lib': path.resolve('./my_libs', 'js-lib'),
'@hhjcz/react-lib/lib': path.resolve('./my_libs', 'react-lib'),
'@hhjcz/react-lib': path.resolve('./my_libs', 'react-lib'),
'@hhjcz/redux-rest': path.resolve('./my_libs', 'redux-rest'),
}
const validAliases = {}
Object.keys(resolveAliases)
Expand Down

0 comments on commit d5af5b9

Please sign in to comment.