Skip to content

Commit ea77bb8

Browse files
Relative path adjustments part 2
1 parent c3145e5 commit ea77bb8

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

app/routes.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function createRoutes(store) {
1818

1919
return [
2020
{
21-
path: '/',
21+
path: '*',
2222
name: 'home',
2323
getComponent(nextState, cb) {
2424
const importModules = Promise.all([
@@ -36,14 +36,15 @@ export default function createRoutes(store) {
3636

3737
importModules.catch(errorLoading);
3838
},
39-
}, {
40-
path: '*',
41-
name: 'notfound',
42-
getComponent(nextState, cb) {
43-
import('containers/NotFoundPage')
44-
.then(loadModule(cb))
45-
.catch(errorLoading);
46-
},
39+
// }, {
40+
// path: '*',
41+
// name: 'notfound',
42+
// getComponent(nextState, cb) {
43+
// import('containers/NotFoundPage')
44+
// .then(loadModule(cb))
45+
// .catch(errorLoading);
46+
// },
47+
// },
4748
},
4849
];
4950
}

internals/webpack/webpack.prod.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = require('./webpack.base.babel')({
4646
// assets manipulations and do leak its manipulations to HtmlWebpackPlugin
4747
new OfflinePlugin({
4848
relativePaths: true,
49-
publicPath: '/',
49+
publicPath: './',
5050

5151
// No need to cache .htaccess. See http://mxs.is/googmp,
5252
// this is applied before any match in `caches` section

0 commit comments

Comments
 (0)