webpack

    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

    0热度

    1回答

    我正在构建一个monorepo,它将包含使用React构建的UI套件的所有单个组件。 我使用lerna,因为我有monorepo /多包配置没有经验,现在我有这样的结构: index.js packages/ pack1/ pack2/ 我想建立每包webpack但希望只使用单一webpack.config.js根文件夹和单个命令在每个软件包目录中创建一个pack*.di

    0热度

    2回答

    我对Webpack和Vue.js相当陌生。 我们知道vue-cli带有2个项目模板webpack和webpack-simple。 当我使用webpack模板,如果我想使用其他的包像Bootstrap 4 beta,我只需要做: 在main.js: import 'jquery' import 'bootstrap/dist/css/bootstrap.css' import 'bootstra