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
With the webpack builder I was able to do raw imports by using require('!!rawloader!./somefile.ts').default
Seems I should be able to to the same with devkit/build-angular:application too, by configuring a plugin in the options, but could not achieve it. Vilte seems to support it by appending ?raw to the file path.
Describe the solution you'd like
Would be great to be able to useimport('raw!./somefile.ts') or similar.
Describe alternatives you've considered
I checked the loader option on the workspace config, but could not make it work for ts or html files. There seems to be an internal option to load plugins in the builder, but that's not accessible as a configuration option.
The text was updated successfully, but these errors were encountered:
Command
build, serve
Description
With the webpack builder I was able to do raw imports by using
require('!!rawloader!./somefile.ts').default
Seems I should be able to to the same with
devkit/build-angular:application
too, by configuring a plugin in the options, but could not achieve it. Vilte seems to support it by appending?raw
to the file path.Describe the solution you'd like
Would be great to be able to use
import('raw!./somefile.ts')
or similar.Describe alternatives you've considered
I checked the
loader
option on the workspace config, but could not make it work for ts or html files. There seems to be an internal option to load plugins in the builder, but that's not accessible as a configuration option.The text was updated successfully, but these errors were encountered: