webpack.config.mjs 394 B

1234567891011121314
  1. import * as path from 'path'
  2. import * as url from 'url'
  3. const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
  4. import config from '../webpack.plugin.config.mjs'
  5. export default () => {
  6. const cfg = config({
  7. name: 'community-color-schemes',
  8. dirname: __dirname,
  9. })
  10. cfg.module.rules.push({ test: /[\\\/]schemes[\\\/]/, use: 'raw-loader' })
  11. return cfg
  12. }