Skip to content

Instantly share code, notes, and snippets.

View miguelrincon's full-sized avatar
🇳🇱
In AMS

Miguel Rincon miguelrincon

🇳🇱
In AMS
View GitHub Profile
@miguelrincon
miguelrincon / webpack.config.js
Created March 22, 2017 07:38
Use webpack and bower together easily
// 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');
# 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