Created
March 20, 2016 11:49
-
-
Save chuck0523/a469bd28b425bdf4d054 to your computer and use it in GitHub Desktop.
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
var glob = require('glob') | |
var path = require('path') | |
var entries = {} | |
glob.sync("./src/**/entry.js").map(function(file) { | |
entries[file] = file | |
}) | |
module.exports = { | |
entry: entries, | |
output: { | |
path: path.join(__dirname, 'dist'), | |
filename: '[name].js' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, thanks for this antique gist.
I had to tweak a bit as this as I was using path with
../
.It was outputing in a parent of
output
.