Skip to content

Instantly share code, notes, and snippets.

@guzmonne
Created December 5, 2016 02:54
Show Gist options
  • Save guzmonne/9767a7ee81edff27630adef5e7f88833 to your computer and use it in GitHub Desktop.
Save guzmonne/9767a7ee81edff27630adef5e7f88833 to your computer and use it in GitHub Desktop.
AWS.Request - hjs-webpack config
const getConfig = require('hjs-webpack')
const webpack = require('webpack')
const Visualizer = require('webpack-visualizer-plugin');
const config = getConfig({
// Entry point for the app.
in: 'src/index.js',
// Name of the output directory
out: 'public',
output: {
// The filename of our output bundle
filename: 'app.js',
},
// Reset our outpus folder on each build.
clearBeforeBuild: true,
})
config.plugins.push(new Visualizer())
module.exports = config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment