Created
August 29, 2016 11:48
-
-
Save andresgutgon/d91020f3a46bd0ccb1dab4b15fd57d38 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 _ = 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