A webpack loader that transforms resource file contents into a JavaScript string. Version 0.0.1 is a very early release with minimal documentation and no explicit stability guarantees. It exports a single function that returns the file content with escaped characters wrapped in quotes. Not actively maintained; latest commit from 2015. Alternative: raw-loader provides similar functionality with broader adoption and updates.
npm install string-loaderVerified import paths — ran on the pinned version, not inferred.
Shows how to configure webpack to load .html files as strings using string-loader.
Use raw-loader instead, which is maintained and works with webpack 4+.
Pin exact version and test thoroughly.
Ensure webpack config uses 'use: "string-loader"' in a rule object, and string-loader is installed.
No dependency data recorded yet.