You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to bundle all files to single JavaScript file.
When I place { type: 'style' } to sass-plugin config, esbuild ignores all url(...) imports in style-files and leaves them unchanged.
This setting also affects pure css-files, which I import directly from js.
Just run npm i and npm run build. In the dist folder will be single javascript file with styles, that I import in the app.tsx. But woff-file imported with url(...) didn't get into the bundle.
If you remove type: 'style' in plugin config, then esbuild will bundle all css to separate file and resolve imported woff-file
The text was updated successfully, but these errors were encountered:
aak-lear
changed the title
When "type" is "style", esbuild ignores url-imported files
When "type" is "style" esbuild ignores url-imported files
Oct 25, 2023
I'm trying to bundle all files to single JavaScript file.
When I place
{ type: 'style' }
to sass-plugin config, esbuild ignores allurl(...)
imports in style-files and leaves them unchanged.This setting also affects pure css-files, which I import directly from js.
You can see example here: https://github.com/aak-lear/esbuild-with-sass-plugin-example
Just run
npm i
andnpm run build
. In thedist
folder will be single javascript file with styles, that I import in theapp.tsx
. But woff-file imported withurl(...)
didn't get into the bundle.If you remove
type: 'style'
in plugin config, then esbuild will bundle all css to separate file and resolve imported woff-fileThe text was updated successfully, but these errors were encountered: