1.0.0 • Published 4 years ago

attribute-file-content-loader v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

attribute-file-content-loader

Webpack Loader. Adds file content instead of attribute with file path

Install

$ npm install --save-dev attribute-file-content-loader

Usage

module: {
    rules: [{
        test: /\.pug$/,
		use:[{
		  loader: 'attribute-file-content-loader',
		  options: {
		    tag: "include", // Tag in compiling file. "include" by default
		    baseDir: PATHS.src // Alias for "@"
		  },
		}]
	}]
}
	include("@/assets/icons/image.svg")

License

MIT