Discussions
External Libraries
almost 8 years ago by Chris Rivera
Hi
Quick question:
I would like to add an external js library into the project (like a jquery plugin). but any file i put in the assets/js folder doesnt get picked up.
is there a way to tell webpack all the entries from js and the output files?
i have done something like this before in my react projects if i have multiple apps:
entry : {
'dashboard': APP_DIR + '/Dashboard.js',
'client': APP_DIR + '/Client.js'
},
output : {
path : BUILD_DIR,
filename : '[name].bundle.js'
},
module : {
loaders : [ {
test : /.js?/,
include : APP_DIR,
loader : 'babel'
} ]
}
Thank you!