Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / applications / docs / webpack.config.ts
blobdb3732cfcea679edf206fccf227dc7e6b5108028
1 import { Configuration } from 'webpack'
3 import getConfig from '@proton/pack/webpack.config'
4 import { addDevEntry } from '@proton/pack/webpack/entries'
6 const result = (env: any): Configuration => {
7   const config = getConfig(env)
8   if (env.appMode === 'standalone') {
9     addDevEntry(config)
10   }
11   // @ts-ignore
12   const scssRule = config.module.rules.find((rule) => rule.test.toString().includes('scss'))
13   // @ts-ignore
14   const postCssLoader = scssRule.use.find((use) => use.loader.includes('postcss-loader'))
15   // @ts-ignore
16   postCssLoader.options.postcssOptions.plugins.push(require('tailwindcss')())
17   return config
20 export default result