Adds
use strict;
in the beginning of each source
Inspired by this gist https://gist.github.com/loganfsmyth/6f8520c7c96f61f0a5b8
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.
$ npm install --save strict-loader
require('strict!./yourmom.js');
module.exports = {
module: {
loaders: [
{
test: /\.js$/,
loader: 'strict'
}
]
}
};
MIT