1.0.4 • Published 7 years ago

safe-externals-loader v1.0.4

Weekly downloads
8
License
ISC
Repository
github
Last release
7 years ago

Safe Externals Loader for Webpack

Load webpack externals only if they are available globally, else require them

Usage example:

const safeExternals = {
  jquery: ['jQuery', '$'],
  react: ['React']
};

module.exports = {
  entry: './index.js',
  output: {
      path: __dirname,
      filename: 'bundle.js'
  },
  module: {
    loaders: [{
      test: /\.js$/,
      loader: 'safe-externals-loader',
      query: JSON.stringify(safeExternals)
    }]
  }
};
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago