Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtWebpackPlugin: Incorrectly assumes index.html in use #258

Open
shieldsjared opened this issue Feb 6, 2020 · 0 comments
Open

ExtWebpackPlugin: Incorrectly assumes index.html in use #258

shieldsjared opened this issue Feb 6, 2020 · 0 comments

Comments

@shieldsjared
Copy link

Using app.json, you can disable/change the page output path. Recent changes to ExtWebpackPlugin incorrectly assume that index.html is in use, and the process bombs if it is not...

Error: ENOENT: no such file or directory, lstat 'D:\XXX\clients\admin\build\production\index.html'
    at Object.fs.lstatSync (fs.js:941:11)
    at replacizeFileSync (D:\XXX\clients\admin\node_modules\replace\replace.js:140:22)
    at module.exports (D:\XXX\clients\admin\node_modules\replace\replace.js:80:17)
    at ExtWebpackPlugin.postBuildProcess (D:\XXX\clients\admin\node_modules\@sencha\ext-webpack-plugin\dist\index.js:114:9)
    at compiler.hooks.done.tap.stats (D:\XXX\clients\admin\node_modules\@sencha\ext-webpack-plugin\dist\index.js:88:12)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\XXX\clients\admin\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1)
    at AsyncSeriesHook.lazyCompileHook (D:\XXX\clients\admin\node_modules\tapable\lib\Hook.js:154:20)

app.json snippet

"output": {
    "base": "${workspace.build.dir}/${build.environment}",
    "page": {
      "path": "../../../../Views/Admin/Index.cshtml",
      "enable": false
    },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant