-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
31 lines (25 loc) · 1.11 KB
/
webpack.config.js
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
28
29
30
31
// @see https://github.com/symfony/webpack-encore/blob/master/index.js for full API
const Encore = require("@symfony/webpack-encore");
const path = require("path");
Encore
.disableSingleRuntimeChunk() // enabling this will create a separate runtime.js
.setOutputPath("./")
.setPublicPath("/")
.configureBabel((babelConfig) => {
babelConfig.plugins.push("@babel/plugin-transform-arrow-functions");
})
.enableSassLoader()
.enablePostCssLoader((options) => {
options.postcssOptions = {
// the directory where the postcss.config.js file is stored
config: path.resolve(__dirname, '', 'postcss.config.js'),
};
})
.enableSourceMaps(false)
.enableVersioning(false)
.enableTypeScriptLoader()
.addEntry("./src/Resources/public/js/system-banner", "./assets/system-banner.standalone.ts")
.addEntry("./src/Resources/public/js/pimcore/system-banner", "./assets/system-banner.pimcore.ts")
.addStyleEntry("./src/Resources/public/css/pimcore/system-banner", "./assets/scss/system-banner.scss")
;
module.exports = Encore.getWebpackConfig();