babel-plugin-file-loader
babel-plugin-file-loader copied to clipboard
Like webpack's file-loader, but on server side. Allows for production-grade require('./file.png')
It seemed unintuitive that an `import` would have to point to a relative path and isn't processed by node's module loading system (i.e. check `node_modules`, etc). Perhaps that because I...
Bumps [json5](https://github.com/json5/json5) from 2.1.0 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@ChALkeR). Fix boolean schemas with strictKeywords...
So the way my app is structured is any component that needs images has a nested /images folder inside each component. I am using the babel-plugin-file-loader to extract the images...
feat: allowing extension list to feature extensions with two dots (e.g. `module.less`, `module.css`)
This PR should be able to allow people to use extensions with multiple `.`s in them. This PR passes all tests, and should hopefully not break anyone's existing code. The...
Steps to reproduce: 1. Add plugin to babel config: ``` [ 'file-loader', { name: '[hash].[ext]', extensions: ['module.less'], publicPath: '../public', outputPath: '/dist/public', context: '', limit: 0, }, ], ``` Note that...
https://github.com/sheerun/babel-plugin-file-loader/issues/7 Fix for this issue. ``` babelRegister({ cache: false, extensions: ['.js'], presets: [ ['@babel/preset-env'], ['@babel/preset-react'] ], plugins: [ ['@babel/plugin-transform-runtime'], ['babel-plugin-transform-require-ignore', { extensions: ['.css', '.scss'] }], ['babel-plugin-file-loader', { rootPath: '../', publicPath:...