[webpack-dev-server] Serve more local resources/files
This commit is contained in:
parent
15ab7a292c
commit
53e1160a1c
@ -207,8 +207,7 @@ module.exports = [
|
|||||||
* target, undefined; otherwise, the path to the local file to be served.
|
* target, undefined; otherwise, the path to the local file to be served.
|
||||||
*/
|
*/
|
||||||
function devServerProxyBypass({ path }) {
|
function devServerProxyBypass({ path }) {
|
||||||
// Use local files from the css and libs directories.
|
if (path.startsWith('/css/') || path.startsWith('/doc/')) {
|
||||||
if (path.startsWith('/css/')) {
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user