Skip to content

Instantly share code, notes, and snippets.

@kwhitaker
Created May 15, 2016 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwhitaker/ef0cb10454aac22713e51748169d6140 to your computer and use it in GitHub Desktop.
Save kwhitaker/ef0cb10454aac22713e51748169d6140 to your computer and use it in GitHub Desktop.
const config = Object.assign({}, require(`./webpack.${process.env.NODE_ENV}`), pkgOpts)
config.entry.push(`${pkg}/build/init`)
config.output.filename = `${pkg}.js`
config.plugins.push(
new HtmlWebpackPlugin({
favicon: 'src/favicon.ico',
title: pkgOpts.name || 'Needs a name',
})
)
const compiler = webpack(config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment