Guest User

Untitled

a guest
Nov 18th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. ...
  2. const WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin');
  3. const webpackIsomorphicToolsPlugin = new WebpackIsomorphicToolsPlugin(require('./webpack-isomorphic-tools-configuration'))
  4. .development();
  5. ...
  6. module.exports = {
  7. ...,
  8. module: {
  9. ...,
  10. {
  11. oneOf: [
  12. {
  13. test: webpackIsomorphicToolsPlugin.regularExpression('images'),
  14. loader: 'url-loader?limit=10240'
  15. }
  16. ]
  17. },
  18. ...
  19. },
  20. ...,
  21. plugins: [
  22. ...,
  23. webpackIsomorphicToolsPlugin
  24. ],
  25. ...
  26. };
Add Comment
Please, Sign In to add comment