Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "webpack": "^3.10.0",
- "webpack-dev-server": "^2.9.7"
- var path = require("path");
- module.exports = {
- entry: "./src/index.js",
- output: {
- path: path.resolve(__dirname, "dist"),
- publicPath: "/assets/",
- filename: "bundle.js"
- },
- devServer: {
- contentBase: path.join(__dirname, "dist"),
- compress: true,
- port: 9002
- },
- module: {
- rules: [
- { test: /.js$/, use: 'babel-loader' }
- ]
- }
- };
- import ReactDOM from 'react-dom';
- import React from 'react';
- ReactDOM.render(
- <h1>Curve!</h1>,
- document.getElementById('root')
- );
- Content Security Policy:
- The page’s settings blocked the loading of a resource at self (“default-src http://localhost:9002”).
- Source: ;(function installGlobalHook(window) {
Add Comment
Please, Sign In to add comment