add-text-loader

1.0.2 • Public • Published

#add-text-loader

About

add text in load file 在读取的文件前加一行字符串,可以忽略一些文件

Config

你可以在你的webpack里配置add-text-loader,并且可以忽略一些文件

You can config the loader's behavior by adding an field in your webpack config and ignore some file:

var webpack = require('webpack')
module: {
    loaders: [
                {
                test: /\.less$/,
                loader: ['css-loader!less-loader!add-text-loader?add= @import "../styles/index";&ignore="packages/styles"']
            },
    ]
}

Getting Started

Usage

Documentation: Using loaders

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.20
1.0.10

Package Sidebar

Install

npm i add-text-loader

Weekly Downloads

0

Version

1.0.2

License

none

Last publish

Collaborators

  • fe178