Skip to content

nanzhangren/use_strict_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

use-strict-loader

This is a loader for webpack. You can use this loader for adding 'use strict' to the header of a file.

Usage

module.exports = {
    entry: "./test.js",
    output: {
        path: __dirname,
        filename: "output.js"
    },
    module: {
        preLoaders: [
            {
                test: /\.js$/,
                loader: "use-strict-loader"
            }
        ]
    }
}

About

Add 'use strict' to the header of a file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published