1.0.2 • Published 7 years ago

add-text-loader v1.0.2

Weekly downloads
5
License
-
Repository
github
Last release
7 years ago

#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)

1.0.2

7 years ago

1.0.1

7 years ago