Skip to content

Commit

Permalink
Merge pull request #120 from haydnhkim/master
Browse files Browse the repository at this point in the history
Improve webpack custom build support for external node packages
  • Loading branch information
zloirock committed Oct 17, 2015
2 parents 2ad8b44 + af298ef commit a249ff7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions build/build.ls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require! {'./config': {banner}, fs: {readFile, writeFile, unlink}, webpack}
require! {'./config': {banner}, fs: {readFile, writeFile, unlink}, path, webpack}

list = <[
es5
Expand Down Expand Up @@ -190,7 +190,8 @@ module.exports = ({modules = [], blacklist = [], library = no}, next)!->

TARGET = "./__tmp#{ Math.random! }__.js"
err, info <~! webpack do
entry: list.filter(~> @[it]).map ~> ".#{ if library => '/library' else '' }/modules/#it"
entry: list.filter(~> @[it]).map ~>
path.join(__dirname, '../', "#{ if library => '/library' else '' }/modules/#it")
output:
path: ''
filename: TARGET
Expand Down
5 changes: 3 additions & 2 deletions build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a249ff7

Please sign in to comment.