1.2.0 • Published 7 years ago

strict-loader v1.2.0

Weekly downloads
2,557
License
MIT
Repository
github
Last release
7 years ago

strict-loader

npm downloads travis deps

Adds use strict; in the beginning of each source

:heavy_check_mark: Webpack 2 compatible

Please note that if you use Babel, the strict transformer automatically places a "use strict"; directive at the top of your files. In this case you don't need strict-loader.

Install

$ npm install --save strict-loader

Usage

inline

require('strict!./yourmom.js');

webpack config

module.exports = {
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: 'strict'
      }
    ]
  }
};

demo

npm install
npm start

Open http://localhost:8080/ in browser — you should see text strict-loader is working

License

MIT

1.2.0

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.3

8 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago