Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. if (DEV) {
  2. const webpack = require('webpack');
  3. const clientConfig = require('../configs/client.config')({ isDev: true });
  4.  
  5. const compiler = webpack(clientConfig);
  6.  
  7. app.use(require('webpack-dev-middleware')(compiler, {
  8. noInfo: false,
  9. publicPath: clientConfig.output.publicPath,
  10. stats: 'errors-only'
  11. }));
  12. }
  13.  
  14. {
  15. "compilerOptions": {
  16. "outDir": "./dist/",
  17. "sourceMap": true,
  18. "noImplicitAny": true,
  19. "module": "commonjs",
  20. "target": "es5",
  21. "jsx": "react"
  22. },
  23. "awesomeTypescriptLoaderOptions": {
  24. "silent": true,
  25. "useBabel": true
  26. },
  27. "include": [
  28. "./src/**/*"
  29. ]
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement