mirror of
https://github.com/nextcloud/integration_moodle.git
synced 2025-12-18 05:10:32 +01:00
add color and hide modules in webpack config
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
parent
c5c1e76841
commit
af7b6d7a81
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,11 @@ 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_moodle-personalSettings.js' },
|
||||
dashboard: { import: path.join(__dirname, 'src', 'dashboard.js'), filename: 'integration_moodle-dashboard.js' },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue