Skip to content

Commit 5f7df38

Browse files
authored
Merge pull request #1329 from stof/read_as_string
Read the controllers.json as string rather than Buffer
2 parents 1d49c5d + 7760cea commit 5f7df38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebpackConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ class WebpackConfig {
755755
}
756756

757757
// Add configured entrypoints
758-
const controllersData = JSON.parse(fs.readFileSync(controllerJsonPath));
758+
const controllersData = JSON.parse(fs.readFileSync(controllerJsonPath, 'utf8'));
759759
const rootDir = path.dirname(path.resolve(controllerJsonPath));
760760

761761
for (let name in controllersData.entrypoints) {

0 commit comments

Comments
 (0)