webpack

    0热度

    1回答

    Webpack的Rule选项presents two things(完整而不是快捷语法):resource和issuer。 在Rule属性test,include,exclude和resource与资源和属性匹配issuer与发行者匹配。 所以,它是有点不清楚什么性质与一个resource: { resource: { test: ..., include: ..

    1热度

    1回答

    在我的webpack配置中使用预渲染插件时,我一直在运行命令npm run build时遇到问题。 我用的是的WebPack高级选项: `captureAfterDocumentEvent: 'fetch-done',` 而在代码中,我使用的是承诺包API调用,然后分派一个新的事件。 `new Promise(resolve => { axios.get(url) .

    1热度

    1回答

    在我的配置/ index.js,在构建部分,我有一个从内node_modules进口应该再一个主题模板来 assetsSubDirectory: 'static', assetsPublicPath: '/path/to/subdirectory/', 我的静态字体查看root/path/to /子目录/ static/fonts/some-fonts.woff。它是否正确? 然而,在我的生

    0热度

    1回答

    我正在尝试构建一个Webpack配置,允许我在特定命名空间中创建多个模块。我有以下配置: module.exports = { entry: { 'one': './src/modules/one/one.module.js', 'two': './src/modules/two/two.module.js', 'three': './src/modu

    0热度

    1回答

    我添加了引导与创造了一个角应用Angular-CLI(NG新),加入bootstrap到项目,并从我的.angular-cli.json文件引用之后 - ng serve将无法​​运行。 ERROR LOG ERROR in multi ./src/styles.css C:/server/node_modules/bootstrap/dist/css/bootstrap.css Modul

    1热度

    1回答

    我有一个使用@ types/whatwg-fetch版本0.0.32的项目。 运行我的项目时,出现以下错误。 ERROR in <project-root>/node_modules/@types/whatwg-fetch/index.d.ts (97,11): error TS2304: Cannot find name 'ReadableStream'. 我已经添加@ types/wha

    0热度

    1回答

    我有React应用程序和一个文件,我想存储与api相关的东西。 const proxy = require('http-proxy-middleware'); const path = require('path'); //..... const targetApi = (objectWithUrlEntries) => { Object.keys(objectWithUrlE

    1热度

    1回答

    我已经构建了一个使用以下结构的反应应用程序; node_modules src/ app/ index.ts index.html ... server/ index.ts ... node_modules/ // using the Alle pattern here @<custom_packages>

    0热度

    1回答

    有没有办法启动webpack devserver而不运行建设过程? 我希望它只是为我已经构建的静态文件提供服务。下面是我的配置: devServer: { port: 7171, inline: true, stats: 'errors-only', open: false, contentBase: path.resolve('static'),

    0热度

    1回答

    我试图有条件地使用webpack导入js中的东西。考虑以下几点: fetch.js const findFetch =() => { if (window.process && window.process.electron) { // electron (requirement to use node-fetch here) return require('node