Hugo Alliaume

Results 329 comments of Hugo Alliaume

Hi, and thanks for your detailed report. I was able to reproduce the issue by following code: ```js Encore.addRule({ test: /my-module\/static-assets/, type: 'asset/inline', generator: { dataUrl: content => { return...

Note that the error does not happen when commenting the line: https://github.com/symfony/webpack-encore/blob/12c8144/lib/config-generator.js#L288

After some investigations, it looks like Encore rules for `images` and `fonts` are also trying to handle your assets from `/my-module\/static-assets/` directory. I was able to make things work properly...

I'm 100% of favor of migrating Encore to ESM, it's something I've also thought recently. > Shipping Encore as a CommonJS module means that we cannot upgrade our dependencies to...

About TypeScript support mentionned in my previous message, of course it's a subject for another time, but in some recent versions of Node.js you can execute TypeScript code by stripping...

Hi, We have a documentation about using [Encore inside a Virtual Machine](https://symfony.com/doc/current/frontend/encore/virtual-machine.html) and may be useful when running Encore inside a Docker container. About your questions: > 1. Is --public...

You can use sass-loader's [`additionalData`](https://github.com/webpack-contrib/sass-loader#additionaldata) option. This should work: ```js Encore.enableSassLoader(options => { options.additionalData = ` @import "${path.resolve(__dirname, './assets/css/_variables.scss')}"; @import "${path.resolve(__dirname, './assets/css/_responsive-utilities.mixins.scss')}"; ` }); ```

Surely because `vue-style-loader` is not used, see https://vue-loader.vuejs.org/guide/pre-processors.html#sharing-global-variables. Encore use `style-loader` and not `vue-style-loader`, when CSS extraction is disabled, see https://github.com/symfony/webpack-encore/blob/a7d76ee0661ddeac35e241e1f48962dbf6123906/lib/loaders/css-extract.js#L32. You can try to play with `Encore.configureLoaderRule('css', option =>...

Hi, I edited your message in order to make code blocks more readable, please use ``` next time please 🙏🏻 . Two things: 1. I don't think having a ``...

Option `transpileDependencies` from Vue CLI is a shortcut for configuring [`exclude` rule option](https://webpack.js.org/configuration/module/#ruleexclude), see https://github.com/vuejs/vue-cli/blob/f0f254e4bc81ed322eeb9f7de346e987e845068e/packages/%40vue/cli-plugin-babel/index.js#L36-L96. With Webpack Encore, if you configure [Babel through `Encore.configureBabel()`](https://symfony.com/doc/current/frontend/encore/babel.html), then you must use something like...