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)

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i add-text-loader

    Weekly Downloads

    0

    Version

    1.0.2

    License

    none

    Last publish

    Collaborators

    • fe178