How to use the @instructure/ui-webpack-config.plugins 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 / __docs__ / webpack.config.js View on Github external
'react',
      'react-dom'
    ],
    globals: './globals.js'
  },
  output: {
    path: outputPath,
    filename: '[name].js'
  },
  devServer: {
    disableHostCheck: true,
    contentBase: outputPath,
    host: '0.0.0.0'
  },
  plugins: [
    ...baseConfig.plugins,
    ...require('./plugins')
  ],
  resolve: DEBUG ? require('./resolve') : { mainFields: ['main'] }
}
github instructure / instructure-ui / packages / ui-presets / webpack / plugins.js View on Github external
module.exports = function plugins () {
  return require('@instructure/ui-webpack-config').plugins
}

@instructure/ui-webpack-config

A shared webpack config made by Instructure Inc.

MIT
Latest version published 1 month ago

Package Health Score

76 / 100
Full package analysis

Similar packages