Skip to content

Commit

Permalink
Run check on relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
jgierer12 committed Jan 27, 2018
1 parent 6c68804 commit a6608c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/webpack/webpack-client-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function clientConfig(env) {
options: {
name(filename) {
filename = normalizePath(filename);
if (!filename.includes('/routes/')) return false;
let relative = filename.replace(normalizePath(src), '');
if (!relative.includes('/routes/')) return false;
return 'route-' + cleanFilename(relative);
},
formatName(filename) {
Expand Down

0 comments on commit a6608c1

Please sign in to comment.