Guest User

Untitled

a guest
Dec 15th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. "webpack": "^3.10.0",
  2. "webpack-dev-server": "^2.9.7"
  3.  
  4. var path = require("path");
  5.  
  6. module.exports = {
  7. entry: "./src/index.js",
  8. output: {
  9. path: path.resolve(__dirname, "dist"),
  10. publicPath: "/assets/",
  11. filename: "bundle.js"
  12. },
  13. devServer: {
  14. contentBase: path.join(__dirname, "dist"),
  15. compress: true,
  16. port: 9002
  17. },
  18. module: {
  19. rules: [
  20. { test: /.js$/, use: 'babel-loader' }
  21. ]
  22. }
  23. };
  24.  
  25. import ReactDOM from 'react-dom';
  26. import React from 'react';
  27.  
  28. ReactDOM.render(
  29. <h1>Curve!</h1>,
  30. document.getElementById('root')
  31. );
  32.  
  33. Content Security Policy:
  34. The page’s settings blocked the loading of a resource at self (“default-src http://localhost:9002”).
  35. Source: ;(function installGlobalHook(window) {
Add Comment
Please, Sign In to add comment