From f875b41f07975d4cd11d5e88b688e0df52f45879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 4 Dec 2019 14:01:49 +0100 Subject: [PATCH] load css using dynamic function --- CHANGELOG.md | 1 + Resources/public/index.js | 3 +++ chill.webpack.config.js | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 Resources/public/index.js diff --git a/CHANGELOG.md b/CHANGELOG.md index a332515e2..585f7b8a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,4 +39,5 @@ Master branch ============= - better exception description when task workflow is not found ; +- load webpack config using a `configure` function ; diff --git a/Resources/public/index.js b/Resources/public/index.js new file mode 100644 index 000000000..ad7fb96c7 --- /dev/null +++ b/Resources/public/index.js @@ -0,0 +1,3 @@ +// this file loads all assets from the Chill task bundle +require('./sass/_task.scss'); + diff --git a/chill.webpack.config.js b/chill.webpack.config.js index 48697b1c5..077d2c500 100644 --- a/chill.webpack.config.js +++ b/chill.webpack.config.js @@ -1,3 +1,3 @@ -// this file loads all assets from the Chill task bundle - -require('./Resources/public/sass/_task.scss'); +module.exports = function(encore, entries) { + entries.push(__dirname + '/Resources/public/index.js'); +}; \ No newline at end of file