Fork me on GitHub
#boot
<
2018-05-13
>
attentive13:05:45

Hey gang, had a bit of an npm and boot question … I’m using degree9/boot-npm to retrieve NPM packages to node_modules in a boot cache directory during my boot build, including bootstrap SCSS. I’d like to reference bootstrap SCSS includes as @import 'bootstrap/…' in my own SCSS, which I’m compiling with deraen/boot-sass, but they are not found as resources in the classpath by the @import statement. What’s the best way to add node_modules to the classpath during a Boot build so they get picked up the way I want?

flyboarder18:05:28

@attentive so I recomment also using the node-modules task within boot-npm

💯 4
attentive21:05:09

Thanks for your reply … I’ve had a look at node-modules and it looks promising, will have time to check it out later today.

attentive02:05:23

Yeah thanks, that turned out to be easy. I was trying to set boot-npm up totally against the grain I think

flyboarder18:05:08

but I am around to fix any issues with boot-npm

flyboarder18:05:00

node_modules should be included to the fileset as a resource

flyboarder18:05:10

which version of the task are you running?

attentive21:05:09

Thanks for your reply … I’ve had a look at node-modules and it looks promising, will have time to check it out later today.