diff --git a/assets/admin/entry.js b/assets/admin/entry.js deleted file mode 100644 index 8acf2c2aa0..0000000000 --- a/assets/admin/entry.js +++ /dev/null @@ -1 +0,0 @@ -// In this file you can import assets like images or stylesheets diff --git a/assets/admin/entrypoint.js b/assets/admin/entrypoint.js new file mode 100644 index 0000000000..81eac18531 --- /dev/null +++ b/assets/admin/entrypoint.js @@ -0,0 +1,2 @@ +// In this file you can import assets like images or stylesheets +console.log('Hello Webpack Encore! Edit me in assets/admin/entrypoint.js'); diff --git a/assets/shop/entry.js b/assets/shop/entry.js deleted file mode 100644 index 8acf2c2aa0..0000000000 --- a/assets/shop/entry.js +++ /dev/null @@ -1 +0,0 @@ -// In this file you can import assets like images or stylesheets diff --git a/assets/shop/entrypoint.js b/assets/shop/entrypoint.js new file mode 100644 index 0000000000..6379be9ceb --- /dev/null +++ b/assets/shop/entrypoint.js @@ -0,0 +1,2 @@ +// In this file you can import assets like images or stylesheets +console.log('Hello Webpack Encore! Edit me in assets/shop/entrypoint.js'); diff --git a/config/packages/_sylius.yaml b/config/packages/_sylius.yaml index 6d5fbf8988..043bd505ae 100644 --- a/config/packages/_sylius.yaml +++ b/config/packages/_sylius.yaml @@ -47,6 +47,7 @@ sylius_channel: channel: classes: model: App\Entity\Channel\Channel + sylius_core: resources: avatar_image: @@ -245,6 +246,7 @@ sylius_taxonomy: translation: classes: model: App\Entity\Taxonomy\TaxonTranslation + sylius_user: resources: admin: diff --git a/webpack.config.js b/webpack.config.js index e1a473db3f..93b2556c32 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,7 +50,7 @@ Encore.reset(); Encore .setOutputPath('public/build/app/shop') .setPublicPath('/build/app/shop') - .addEntry('app-shop-entry', './assets/shop/entry.js') + .addEntry('app-shop-entry', './assets/shop/entrypoint.js') .disableSingleRuntimeChunk() .cleanupOutputBeforeBuild() .enableSourceMaps(!Encore.isProduction()) @@ -71,7 +71,7 @@ Encore.reset(); Encore .setOutputPath('public/build/app/admin') .setPublicPath('/build/app/admin') - .addEntry('app-admin-entry', './assets/admin/entry.js') + .addEntry('app-admin-entry', './assets/admin/entrypoint.js') .disableSingleRuntimeChunk() .cleanupOutputBeforeBuild() .enableSourceMaps(!Encore.isProduction())