Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
modulesOnly: true,
}),
json({ namedExports: false }),
builtins(),
postcss({
include: ['**/*.mod.css'],
exclude: ['node_modules/**/*.css'],
modules: true,
importLoaders: 1,
localIdentName: '[name]__[local]___[hash:base64:5]',
plugins: [
postcssImport(),
postcssPresetEnv({
autoprefixer: {
grid: true,
overrideBrowserslist: browserslist.production,
},
}),
postcssCustomMediaQueries({
importFrom: require.resolve(
'@commercetools-frontend/application-components/materials/media-queries.css'
),
}),
// we need to place the postcssDiscardComments BEFORE postcssCustomProperties,
// otherwise we will end up with a bunch of empty :root elements
// wherever there are imported comments
// see https://github.com/postcss/postcss-custom-properties/issues/123
// and https://github.com/commercetools/ui-kit/pull/173
postcssDiscardComments(),
postcssCustomProperties({
preserve: false,
importFrom: require.resolve(