baggage-loader
baggage-loader copied to clipboard
[MAINTAINER NEEDED] :handbag: Webpack loader to automatically require any resources related to the required one
Hi there... Your loader is very necessary for our current project. Maybe you can advise some ways to use it with webpack 5, or just update the package to use...
``` $ npm install [email protected] $ npm install baggage-loader npm WARN [email protected] requires a peer of [email protected] but none was installed. ```
Would be nice if we could also add a loader string like `raw!` in with the other baggage. loader: 'baggage?**raw!**template[Dir].html=[file]Template&**someLoader!**[dir][File]Styles.css' Is this possible?
Maybe I'm doing something wrong but I can't seem to make this work with Typescript. I've configured everything as per various examples: ``` js preLoaders: [ { test : /\.ts$/,...
It would be nice if developer can control way how `baggage-loader` adds injected files: - before source (prepend) `return inject + source;`; - after source (append) `return source + inject;`;
I could be useful to have ability to specify type of variable declaration _var/const_, and choose between _double/single_ quotes. I have linter issues when using `baggage-loader` because of this. So...
var inject = '\n/\* injects from baggage-loader */\n'; causes regular expressions cannot begin with * switched to: var inject = ''; // it works