คำถามติดแท็ก web-development-server

5
จะเข้าถึง webpack-dev-server จากอุปกรณ์ในเครือข่ายท้องถิ่นได้อย่างไร?
มีการกำหนดค่าเซิร์ฟเวอร์ webpack dev (เป็นส่วนหนึ่งของ config ทั้งหมด): config.devServer = { contentBase: './' + (options.publicFolder ? options.publicFolder : 'public'), stats: { modules: false, cached: false, colors: true, chunk: false }, proxy: [{ path: /^\/api\/(.*)/, target: options.proxyApiTarget, rewrite: rewriteUrl('/$1'), changeOrigin: true }] }; function rewriteUrl(replacePath) { return function (req, opt) { // gets …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.