Skip to content

Instantly share code, notes, and snippets.

@andresgutgon
Created August 29, 2016 11:48
Show Gist options
  • Save andresgutgon/d91020f3a46bd0ccb1dab4b15fd57d38 to your computer and use it in GitHub Desktop.
Save andresgutgon/d91020f3a46bd0ccb1dab4b15fd57d38 to your computer and use it in GitHub Desktop.
var _ = require('underscore');
var config = require('./grunt/webpack/config.js');
var plugins = require('./grunt/webpack/plugins.js');
const env = 'development';
var environments = {
production: {
plugins: plugins[env],
devtool: 'source-map',
},
development: {
plugins: plugins[env],
debug: true,
devtool: 'inline-source-map',
failOnError: false,
},
};
/**
* A pelos webpack config
*/
function getConfig() {
var webpackConfig = config(__dirname, env === 'production');
return _.extend(webpackConfig, {
plugins: plugins.development,
debug: true,
devtool: 'inline-source-map',
failOnError: false,
});
}
var finalConfig = getConfig();
module.exports = finalConfig;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment