-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathwebpack.config.js
More file actions
27 lines (24 loc) · 898 Bytes
/
webpack.config.js
File metadata and controls
27 lines (24 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const Encore = require('@symfony/webpack-encore');
if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}
Encore
.setOutputPath('public')
.setPublicPath('/bundles/terminal42notificationcenter')
.setManifestKeyPrefix('')
.addEntry('autosuggester', './assets/autosuggester.ts')
.addStyleEntry('backend', './assets/backend.scss')
.disableSingleRuntimeChunk()
.enableTypeScriptLoader()
.cleanupOutputBeforeBuild()
.enableSassLoader()
.enableSourceMaps(!Encore.isProduction())
.enableVersioning(Encore.isProduction())
.configureBabel((config) => {
config.plugins.push('@babel/plugin-proposal-class-properties');
})
.configureBabelPresetEnv((config) => {
config.useBuiltIns = 'usage';
config.corejs = 3;
})
module.exports = Encore.getWebpackConfig();