0

如何覆盖url-loader limit由创建的应用程序中的选项create-react-app?. 我craco也在用。这是我的 webpack 配置craco.config.js

webpack: {
    configure: (webpackConfig, { env }) => {
      const webpackOverrides = {
        entry: './src/index.tsx',
        output: {
          filename: 'file.js',
          library: ['lib'],
          libraryTarget: 'umd',
          publicPath: 'path',
        },
        resolve: {
          extensions: ['.ts', '.tsx', '.js', '.jsx'],
        },
      };
      const config = deepMergeWithArray(webpackConfig, webpackOverrides);
      return config;
    },
  },

url-loader=> 10kb的最大限制也是?

4

0 回答 0