Commit 185c39f9 authored by Jorgen's avatar Jorgen

Fix react-bootstrap including to decrease bundle size

parent a01c4064
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</head> </head>
<body> <body>
<script src="/dist/etersoft-typos.js"></script> <script src="/etersoft-typos.js"></script>
<noscript> <noscript>
You need to enable JavaScript to run this app. You need to enable JavaScript to run this app.
</noscript> </noscript>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"scripts": { "scripts": {
"buildDev": "webpack -d --devtool=source-map", "buildDev": "webpack -d --devtool=source-map",
"build": "webpack --mode=production", "build": "webpack --mode=production",
"start": "webpack-dev-server -d --hot --content-base dist/" "start": "webpack-dev-server -d --hot --content-base example/"
}, },
"devDependencies": { "devDependencies": {
"babel-core": "^6.26.3", "babel-core": "^6.26.3",
......
import React, {Component} from 'react' import React, {Component} from 'react';
import {Thumbnail} from 'react-bootstrap' import Thumbnail from 'react-bootstrap/lib';
import countryImages from './images'; import countryImages from './images';
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Modal, Button, FormGroup, FormControl, ControlLabel, HelpBlock, Alert } from 'react-bootstrap'
import Modal from 'react-bootstrap/lib';
import Button from 'react-bootstrap/lib';
import FormGroup from 'react-bootstrap/lib';
import FormControl from 'react-bootstrap/lib';
import ControlLabel from 'react-bootstrap/lib';
import HelpBlock from 'react-bootstrap/lib';
import Alert from 'react-bootstrap/lib';
import $ from 'jquery'; import $ from 'jquery';
import './Modal.css'; import './Modal.css';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment