add color and hide modules in webpack config
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Родитель
3c923535af
Коммит
10463575a6
11
webpack.js
11
webpack.js
|
@ -5,10 +5,15 @@ const buildMode = process.env.NODE_ENV
|
|||
const isDev = buildMode === 'development'
|
||||
webpackConfig.devtool = isDev ? 'cheap-source-map' : 'source-map'
|
||||
|
||||
webpackConfig.stats = {
|
||||
colors: true,
|
||||
excludeModules: true,
|
||||
}
|
||||
|
||||
webpackConfig.entry = {
|
||||
personalSettings: { import: path.join(__dirname, 'src', 'personalSettings.js'), filename: 'integration_github-personalSettings.js' },
|
||||
adminSettings: { import: path.join(__dirname, 'src', 'adminSettings.js'), filename: 'integration_github-adminSettings.js' },
|
||||
dashboard: { import: path.join(__dirname, 'src', 'dashboard.js'), filename: 'integration_github-dashboard.js' },
|
||||
personalSettings: { import: path.join(__dirname, 'src', 'personalSettings.js'), filename: 'integration_github-personalSettings.js' },
|
||||
adminSettings: { import: path.join(__dirname, 'src', 'adminSettings.js'), filename: 'integration_github-adminSettings.js' },
|
||||
dashboard: { import: path.join(__dirname, 'src', 'dashboard.js'), filename: 'integration_github-dashboard.js' },
|
||||
}
|
||||
|
||||
module.exports = webpackConfig
|
||||
|
|
Загрузка…
Ссылка в новой задаче