-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
37 lines (30 loc) · 1.02 KB
/
webpack.config.js
File metadata and controls
37 lines (30 loc) · 1.02 KB
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
32
33
34
35
36
37
var Encore = require('@symfony/webpack-encore');
Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/')
// public path used by the web server to access the output path
.setPublicPath('/build')
// only needed for CDN's or sub-directory deploy
//.setManifestKeyPrefix('build/')
.addEntry('app', './user/assets/user.js')
// Add favicon from user dir
.copyFiles([{
from: './user/assets/images',
to: 'images/[path][name].[ext]',
pattern: /favicon\.webp$/,
}])
/*
* For a full list of features, see:
* https://symfony.com/doc/current/frontend.html#adding-more-features
*/
.cleanupOutputBeforeBuild()
.enableBuildNotifications()
.enableSourceMaps(!Encore.isProduction())
.enableSingleRuntimeChunk()
.enableVersioning(Encore.isProduction())
.autoProvidejQuery()
.enableSassLoader()
// uncomment if you use TypeScript
//.enableTypeScriptLoader()
;
module.exports = Encore.getWebpackConfig();