Skip to content
Snippets Groups Projects
stencil.config.ts 1.07 KiB
Newer Older
  • Learn to ignore specific revisions
  • Markus Kaarto's avatar
    Markus Kaarto committed
    import {Config} from '@stencil/core';
    import {sass} from '@stencil/sass';
    import {postcss} from '@stencil/postcss';
    import autoprefixer from 'autoprefixer';
    import postcssimport from 'postcss-import';
    import {reactOutputTarget} from '@stencil/react-output-target';
    
    
    export const config: Config = {
    
    Markus Kaarto's avatar
    Markus Kaarto committed
      namespace: 'huds-lib',
      globalStyle: 'src/global/styles.scss',
    
      globalScript: 'src/global/globalScript.ts',
    
    Markus Kaarto's avatar
    Markus Kaarto committed
      plugins: [
        sass({
    
    Markus Kaarto's avatar
    Markus Kaarto committed
          injectGlobalPaths: ['src/global/styles.scss']
    
    Tuukka Turu's avatar
    Tuukka Turu committed
        }),
        postcss({
          plugins: [
            postcssimport,
            autoprefixer({
    
    Markus Kaarto's avatar
    Markus Kaarto committed
              cascade: false
            })
          ]
        })
    
    Markus Kaarto's avatar
    Markus Kaarto committed
      ],
    
    Markus Kaarto's avatar
    Markus Kaarto committed
        reactOutputTarget({
    
    Markus Kaarto's avatar
    Markus Kaarto committed
          componentCorePackage: '@itcenteratunihelsinki/huds-lib',
          proxiesFile: '../react-huds-wrapper/src/components.ts'
    
    Markus Kaarto's avatar
    Markus Kaarto committed
        }),
    
    Markus Kaarto's avatar
    Markus Kaarto committed
          type: 'dist',
          copy: [{src: 'fonts', dest: '../fonts'}]
    
    Markus Kaarto's avatar
    Markus Kaarto committed
          type: 'docs-readme',
          footer: 'Helsinki University Design System'
    
    Markus Kaarto's avatar
    Markus Kaarto committed
          type: 'www',
    
    Markus Kaarto's avatar
    Markus Kaarto committed
          serviceWorker: null, // disable service workers
    
    Markus Kaarto's avatar
    Markus Kaarto committed
          copy: [{src: 'fonts'}]
        }
      ]