From 278e0de24db7f478a96c10fc0421a5a28657e09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 4 Dec 2019 14:04:02 +0100 Subject: [PATCH] load assets using a configure function --- CHANGELOG.md | 5 +++++ Resources/public/index.js | 1 + chill.webpack.config.js | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 Resources/public/index.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 38a69343d..a532778e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,3 +48,8 @@ Version 1.5.7 - add a link between accompanying person and user - add an icon when the file is opened / closed in result list, and in person rendering macro - improve command to move person and all data: allow to delete some entities during move and add events + +CRUD-init branch +================ + +- configure asset using a function diff --git a/Resources/public/index.js b/Resources/public/index.js new file mode 100644 index 000000000..f4bcba7fb --- /dev/null +++ b/Resources/public/index.js @@ -0,0 +1 @@ +require('./sass/person.scss'); \ No newline at end of file diff --git a/chill.webpack.config.js b/chill.webpack.config.js index 97222b223..724184f63 100644 --- a/chill.webpack.config.js +++ b/chill.webpack.config.js @@ -1,4 +1,4 @@ // this file loads all assets from the Chill person bundle - -require('./Resources/public/css/person.css'); -//require('./Resources/public/sass/person.scss'); +module.exports = function(encore, entries) { + entries.push(__dirname + '/Resources/public/index.js'); +};