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