From 9ccb5292ee0ec6998fde05a1397eba94d6219508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 23 Apr 2020 00:10:27 +0200 Subject: [PATCH] update the way the bundle load assets We use now the standard way to load assets. See [CHANGELOG.md](CHANGELOG.md) for details. --- CHANGELOG.md | 10 ++++++++++ Resources/public/index.js | 1 + chill.webpack.config.js | 8 ++++---- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 Resources/public/index.js diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..9dd73d13f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,10 @@ + +Branch sf3 +========== + +- fix the way the bundle compile assets ; + + This modification will require to update Chill-Standard to the latest version. + At least, the file `webpack.config.js` should be upgrade [to the last + version](https://framagit.org/Chill-project/Chill-Standard/-/blob/c7a7de68ec49d97c9e1481b72c1f848f9b5cb2d7/webpack.config.js) + diff --git a/Resources/public/index.js b/Resources/public/index.js new file mode 100644 index 000000000..697693c59 --- /dev/null +++ b/Resources/public/index.js @@ -0,0 +1 @@ +require('./css/chillevent.css'); \ No newline at end of file diff --git a/chill.webpack.config.js b/chill.webpack.config.js index b7cd46970..a194522ad 100644 --- a/chill.webpack.config.js +++ b/chill.webpack.config.js @@ -1,4 +1,4 @@ -// this file loads all assets from the Chill event bundle - -// css -require('./Resources/public/css/chillevent.css'); +// this file loads all assets from the Chill Event Bundle +module.exports = function(encore, entries) { + entries.push(__dirname + '/Resources/public/index.js'); +}; \ No newline at end of file