doc/webpack.md in ajax-datatables-rails-1.2.0 vs doc/webpack.md in ajax-datatables-rails-1.3.0
- old
+ new
@@ -22,10 +22,13 @@
In `config/webpack/loaders/datatables.js` :
```js
module.exports = {
test: /datatables\.net.*/,
- loader: 'imports-loader?define=>false'
+ loader: 'imports-loader',
+ options: {
+ additionalCode: 'var define = false;'
+ }
}
```
In `config/webpack/environment.js` :