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') {
12 const scssRule = config.module.rules.find((rule) => rule.test.toString().includes('scss'))
14 const postCssLoader = scssRule.use.find((use) => use.loader.includes('postcss-loader'))
16 postCssLoader.options.postcssOptions.plugins.push(require('tailwindcss')())