Skip to content

Commit

Permalink
Fixed update for route fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haddix, Steven authored and Haddix, Steven committed Feb 28, 2017
1 parent 8b3db7a commit 8f8959e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ SuperAwesomeWebpackPlugin.prototype.apply = function(compiler) {
const routes = rootRoute(siteFixed.component, siteFixed.routes, siteFixed.index)

dataFiles.map((dataFile) => {
let fileRoute = dataFile.replace(dataDir.replace(/^(\.\/|\/)/, ''), '').replace('.json', '');
let fileRoute = dataFile.replace(dataDir.replace('./', ''), '')
.replace('.json', '')
.replace(/^(\.\/|\/)/, '');
const state = require(path.resolve(dataFile));
let appRoute = generateAppRoute(dataFile, dataDir);

Expand Down

0 comments on commit 8f8959e

Please sign in to comment.