Skip to content

Commit

Permalink
Add output configuration
Browse files Browse the repository at this point in the history
Expose multiple node libraries
Also ignore the dist files
  • Loading branch information
rricard committed Nov 22, 2015
1 parent bccdaf2 commit cf6e5dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -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
7 changes: 7 additions & 0 deletions webpack.config.js
@@ -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: [
{
Expand Down

0 comments on commit cf6e5dc

Please sign in to comment.