This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Webpack by default resolves modules from the ./node_modules | |
// directory (and up in the directory structure). We can make | |
// it so it finds modules in bower_components as well. | |
// Using both node_modules and bower_components allows for a | |
// gradual migration from bower to npm, allowing to move | |
// packages one at a time without major impact. | |
var path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use `npm run --` to avoid global installs of modules | |
# We can use npm scripts to "proxy" to locally installed packages without global | |
# installations and without appending ./node_modules/... to the command we want | |
# to call. | |
# PROBLEM: | |
# Calling a locally installed module from the terminal won't work: | |
$ webpack |