Permalink
Browse files

Add output configuration

Expose multiple node libraries
Also ignore the dist files
  • Loading branch information...
rricard committed Nov 22, 2015
1 parent bccdaf2 commit cf6e5dce81c34630d67b333262ef6ac4c83f040e
Showing with 10 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +7 −0 webpack.config.js
@@ -25,3 +25,6 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
# Ignore dist files
dist
@@ -1,6 +1,13 @@
var path = require("path");
module.exports = {
output: {
path: path.join(__dirname, "dist"),
library: "[name]",
libraryTarget: "commonjs2",
filename: "[name].js"
},
target: "node",
module: {
loaders: [
{

0 comments on commit cf6e5dc

Please sign in to comment.