How to use @commercetools-frontend/mc-scripts - 1 common examples

To help you get started, weā€™ve selected a few @commercetools-frontend/mc-scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commercetools / merchant-center-application-kit / rollup.config.js View on Github external
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(

@commercetools-frontend/mc-scripts

Configuration and scripts for developing a MC application

MIT
Latest version published 30 days ago

Package Health Score

84 / 100
Full package analysis

Popular @commercetools-frontend/mc-scripts functions