This reverts commit ef506c54d6
.
This commit is contained in:
parent
401a57dc0d
commit
d5ece361aa
|
@ -5,15 +5,13 @@ import 'sass/styles.scss';
|
||||||
import 'babel-polyfill';
|
import 'babel-polyfill';
|
||||||
import 'whatwg-fetch';
|
import 'whatwg-fetch';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import OfflineRuntime from 'offline-plugin/runtime';
|
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import Root from './Root';
|
import Root from './Root';
|
||||||
import { configuredStore } from './store';
|
import { configuredStore } from './store';
|
||||||
import consoleAdvertisement from './utils/consoleAdvertisement';
|
import consoleAdvertisement from './utils/consoleAdvertisement';
|
||||||
|
|
||||||
OfflineRuntime.install();
|
|
||||||
|
|
||||||
const appEl = document.getElementById('app');
|
const appEl = document.getElementById('app');
|
||||||
|
|
||||||
render(<Root store={configuredStore} />, appEl);
|
render(<Root store={configuredStore} />, appEl);
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
|
|
|
@ -94,7 +94,6 @@
|
||||||
"node-sass": "4.7.2",
|
"node-sass": "4.7.2",
|
||||||
"nodemon": "1.14.9",
|
"nodemon": "1.14.9",
|
||||||
"null-loader": "0.1.1",
|
"null-loader": "0.1.1",
|
||||||
"offline-plugin": "4.9.0",
|
|
||||||
"prettier": "1.9.2",
|
"prettier": "1.9.2",
|
||||||
"progress": "2.0.0",
|
"progress": "2.0.0",
|
||||||
"react-hot-loader": "3.1.3",
|
"react-hot-loader": "3.1.3",
|
||||||
|
|
|
@ -6,7 +6,7 @@ const webpack = require('webpack');
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
|
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
|
||||||
const BabelMinifyPlugin = require('babel-minify-webpack-plugin');
|
const BabelMinifyPlugin = require('babel-minify-webpack-plugin');
|
||||||
const OfflinePlugin = require('offline-plugin');
|
// const OfflinePlugin = require('offline-plugin')
|
||||||
const base = require('./webpack.base');
|
const base = require('./webpack.base');
|
||||||
const config = require('./config');
|
const config = require('./config');
|
||||||
const rimraf = require('rimraf');
|
const rimraf = require('rimraf');
|
||||||
|
@ -75,10 +75,15 @@ base.plugins.push(
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: 'vendor',
|
name: 'vendor',
|
||||||
filename: 'vendor.[chunkhash:8].js'
|
filename: 'vendor.[chunkhash:8].js'
|
||||||
}),
|
|
||||||
new OfflinePlugin({
|
|
||||||
appShell: '/'
|
|
||||||
})
|
})
|
||||||
|
// For progressive web apps
|
||||||
|
// new OfflinePlugin({
|
||||||
|
// relativePaths: false,
|
||||||
|
// AppCache: false,
|
||||||
|
// ServiceWorker: {
|
||||||
|
// events: true
|
||||||
|
// }
|
||||||
|
// })
|
||||||
);
|
);
|
||||||
|
|
||||||
// minimize webpack output
|
// minimize webpack output
|
||||||
|
|
Loading…
Reference in New Issue