How to use the @instructure/ui-webpack-config.resolveLoader function in @instructure/ui-webpack-config

To help you get started, we’ve selected a few @instructure/ui-webpack-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-karma-config / lib / index.js View on Github external
cache: !DEBUG,
        mode: 'development',
        devtool: DEBUG ? 'cheap-module-source-map': 'none',
        externals: {
          'react/lib/ExecutionEnvironment': true,
          'react/lib/ReactContext': true,
          'react/addons': true,
          // The karma mocha plugin exposes a mocha instance as `window.mocha`,
          // but the mocha npm package exports the mocha contructor function.
          // The choma script needs access to the mocha constructor so it can
          // monkey-patch it for random test ordering.
          'mocha': 'mocha.constructor'
        },
        resolveLoader: {
          alias: {
            ...baseWebpackConfig.resolveLoader.alias,
            'ui-tests-loader': path.join(__dirname, './loaders/ui-tests-loader')
          }
        }
      },

      webpackMiddleware: { stats: 'errors-only' },

      // TODO: pull breakpoints from theme
      viewport: {
        breakpoints: [
          {
            name: 'small',
            size: {
              width: 320,
              height: 480
            }

@instructure/ui-webpack-config

A shared webpack config made by Instructure Inc.

MIT
Latest version published 12 days ago

Package Health Score

78 / 100
Full package analysis

Similar packages