@commercetools-frontend/mc-scripts 0.0.0-CRAFT-1791-20251006162610
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.d.ts +2 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +5 -0
- package/application-runtime/package.json +4 -0
- package/bin/cli.js +8 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.d.ts +2 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +199 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.js +7 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +199 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +184 -0
- package/cli/package.json +4 -0
- package/config/create-webpack-config-for-development.js +8 -0
- package/config/create-webpack-config-for-production.js +8 -0
- package/config/vendors-to-transpile.js +6 -0
- package/dist/build-2a0a18bd.esm.js +155 -0
- package/dist/build-521f3f9f.cjs.prod.js +169 -0
- package/dist/build-988fc0f7.cjs.dev.js +169 -0
- package/dist/build-vite-16b1a575.cjs.dev.js +238 -0
- package/dist/build-vite-59e1f185.esm.js +208 -0
- package/dist/build-vite-5d317720.cjs.prod.js +238 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +29 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.js +7 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +29 -0
- package/dist/commercetools-frontend-mc-scripts.esm.js +21 -0
- package/dist/compile-html-025cd493.esm.js +34 -0
- package/dist/compile-html-50fd05ec.cjs.prod.js +42 -0
- package/dist/compile-html-f4ac88cc.cjs.dev.js +42 -0
- package/dist/config-sync-70a16916.cjs.dev.js +852 -0
- package/dist/config-sync-72c20d80.cjs.prod.js +846 -0
- package/dist/config-sync-bc895390.esm.js +830 -0
- package/dist/create-postcss-config-cb7be312.cjs.dev.js +81 -0
- package/dist/create-postcss-config-dde0ccf1.esm.js +75 -0
- package/dist/create-postcss-config-edca0c33.cjs.prod.js +81 -0
- package/dist/create-webpack-config-for-development-1aed1cc0.cjs.prod.js +465 -0
- package/dist/create-webpack-config-for-development-a95f3634.esm.js +440 -0
- package/dist/create-webpack-config-for-development-d003697b.cjs.dev.js +465 -0
- package/dist/create-webpack-config-for-production-15fbe7db.cjs.dev.js +523 -0
- package/dist/create-webpack-config-for-production-764c482f.cjs.prod.js +523 -0
- package/dist/create-webpack-config-for-production-9f42c336.esm.js +493 -0
- package/dist/credentials-storage-66c1e51f.cjs.prod.js +95 -0
- package/dist/credentials-storage-d001f726.esm.js +83 -0
- package/dist/credentials-storage-e7884d17.cjs.dev.js +95 -0
- package/dist/declarations/src/application-runtime.d.ts +1 -0
- package/dist/declarations/src/cli.d.ts +4 -0
- package/dist/declarations/src/config/create-postcss-config.d.ts +4 -0
- package/dist/declarations/src/config/create-webpack-config-for-development.d.ts +10 -0
- package/dist/declarations/src/config/create-webpack-config-for-production.d.ts +10 -0
- package/dist/declarations/src/config/vendors-to-transpile.d.ts +2 -0
- package/dist/declarations/src/deprecated-entry-points.d.ts +7 -0
- package/dist/declarations/src/index.d.ts +3 -0
- package/dist/declarations/src/postcss.d.ts +1 -0
- package/dist/declarations/src/types.d.ts +94 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/declarations/src/webpack-loaders/i18n-message-compilation-loader.d.ts +3 -0
- package/dist/declarations/src/webpack.d.ts +2 -0
- package/dist/deployment-previews-set-17e8ed48.cjs.prod.js +202 -0
- package/dist/deployment-previews-set-3648972f.esm.js +191 -0
- package/dist/deployment-previews-set-37aef990.cjs.dev.js +202 -0
- package/dist/does-file-exist-32618334.esm.js +12 -0
- package/dist/does-file-exist-be53305d.cjs.prod.js +18 -0
- package/dist/does-file-exist-eb86baca.cjs.dev.js +18 -0
- package/dist/graphql-requests-6a47ad5b.esm.js +247 -0
- package/dist/graphql-requests-779b867b.cjs.dev.js +270 -0
- package/dist/graphql-requests-8086eba7.cjs.prod.js +270 -0
- package/dist/has-jsx-runtime-aa5d21ee.cjs.dev.js +15 -0
- package/dist/has-jsx-runtime-c3202df5.cjs.prod.js +15 -0
- package/dist/has-jsx-runtime-e3ecb09b.esm.js +13 -0
- package/dist/i18n-message-complilation-21d3b0aa.esm.js +15 -0
- package/dist/i18n-message-complilation-7311cb29.cjs.dev.js +23 -0
- package/dist/i18n-message-complilation-7762da61.cjs.prod.js +23 -0
- package/dist/login-0a728449.esm.js +229 -0
- package/dist/login-817a5a26.cjs.dev.js +270 -0
- package/dist/login-85c25393.cjs.prod.js +270 -0
- package/dist/optimizations-7789145e.cjs.dev.js +85 -0
- package/dist/optimizations-bf991634.esm.js +67 -0
- package/dist/optimizations-fb93514f.cjs.prod.js +85 -0
- package/dist/package-7e170dc4.cjs.dev.js +160 -0
- package/dist/package-940b0a2a.cjs.prod.js +160 -0
- package/dist/package-99e547a7.esm.js +158 -0
- package/dist/paths-39f22b8b.esm.js +36 -0
- package/dist/paths-7768b440.cjs.prod.js +44 -0
- package/dist/paths-b76fc753.cjs.dev.js +44 -0
- package/dist/serve-1036c2de.esm.js +55 -0
- package/dist/serve-50d33f0b.cjs.dev.js +64 -0
- package/dist/serve-8a506da6.cjs.prod.js +64 -0
- package/dist/start-1d677ad8.cjs.dev.js +177 -0
- package/dist/start-2a7ae03d.esm.js +164 -0
- package/dist/start-f56cb5f7.cjs.prod.js +177 -0
- package/dist/start-vite-068e9f73.cjs.dev.js +128 -0
- package/dist/start-vite-29078b3a.cjs.prod.js +128 -0
- package/dist/start-vite-7d1161e8.esm.js +116 -0
- package/dist/vendors-to-transpile-04a49d40.cjs.prod.js +5 -0
- package/dist/vendors-to-transpile-6ab4ea06.cjs.dev.js +5 -0
- package/dist/vendors-to-transpile-7dc84a72.esm.js +3 -0
- package/dist/vite-plugin-svgr-4034a834.cjs.prod.js +151 -0
- package/dist/vite-plugin-svgr-7d06f400.cjs.dev.js +151 -0
- package/dist/vite-plugin-svgr-de6ee7da.esm.js +125 -0
- package/package.json +156 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.d.ts +2 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +12 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.js +7 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +12 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +4 -0
- package/postcss/package.json +4 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.d.ts +2 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +57 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.js +7 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +57 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +48 -0
- package/webpack/package.json +4 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.d.ts +3 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +30 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.js +7 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +30 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +26 -0
- package/webpack-loaders/i18n-message-compilation-loader/package.json +4 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
|
+
var path = require('path');
|
|
5
|
+
var _package = require('./package-7e170dc4.cjs.dev.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
10
|
+
|
|
11
|
+
// This function aims to return the same result as `require.resolve`.
|
|
12
|
+
// However, resolving a path to a `.css` file does not return the real
|
|
13
|
+
// path when this file is executed within a Jest environment, because
|
|
14
|
+
// of the `identity-obj-proxy` resolver.
|
|
15
|
+
// Therefore, we trick it by resolving the package entry point and
|
|
16
|
+
// constructing the real path manually.
|
|
17
|
+
const safeResolvePath = (packageName, fileRelativePath) => {
|
|
18
|
+
const defaultPackageEntryPoint = require.resolve(packageName);
|
|
19
|
+
const _defaultPackageEntryP = defaultPackageEntryPoint.split('dist'),
|
|
20
|
+
_defaultPackageEntryP2 = _slicedToArray(_defaultPackageEntryP, 1),
|
|
21
|
+
pathToPackage = _defaultPackageEntryP2[0];
|
|
22
|
+
return path__default["default"].join(pathToPackage, fileRelativePath);
|
|
23
|
+
};
|
|
24
|
+
function createPostcssConfig() {
|
|
25
|
+
let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
26
|
+
_ref$postcssImportPat = _ref.postcssImportPaths,
|
|
27
|
+
postcssImportPaths = _ref$postcssImportPat === void 0 ? [] : _ref$postcssImportPat,
|
|
28
|
+
_ref$postcssCustomMed = _ref.postcssCustomMediaPaths,
|
|
29
|
+
postcssCustomMediaPaths = _ref$postcssCustomMed === void 0 ? [] : _ref$postcssCustomMed,
|
|
30
|
+
_ref$postcssCustomPro = _ref.postcssCustomPropertiesPaths,
|
|
31
|
+
postcssCustomPropertiesPaths = _ref$postcssCustomPro === void 0 ? [] : _ref$postcssCustomPro;
|
|
32
|
+
return {
|
|
33
|
+
parser: false,
|
|
34
|
+
map: false,
|
|
35
|
+
plugins: [
|
|
36
|
+
/**
|
|
37
|
+
* Plugin to transform `@import` rules by inlining content.
|
|
38
|
+
* https://github.com/postcss/postcss-import
|
|
39
|
+
*/
|
|
40
|
+
require('postcss-import')({
|
|
41
|
+
path: postcssImportPaths
|
|
42
|
+
}),
|
|
43
|
+
/**
|
|
44
|
+
* Plugin to parse CSS and add vendor prefixes to CSS rules
|
|
45
|
+
* using values from "[Can I Use](https://caniuse.com/)".
|
|
46
|
+
* https://github.com/postcss/autoprefixer
|
|
47
|
+
*/
|
|
48
|
+
require('autoprefixer')({
|
|
49
|
+
// Enables `-ms-` prefixes for Grid Layout including some
|
|
50
|
+
// limited autoplacement support.
|
|
51
|
+
// https://github.com/postcss/autoprefixer#grid-autoplacement-support-in-ie
|
|
52
|
+
grid: 'autoplace',
|
|
53
|
+
overrideBrowserslist: process.env.NODE_ENV === 'production' ? _package.pkgJson.browserslist.production : _package.pkgJson.browserslist.development
|
|
54
|
+
}),
|
|
55
|
+
/**
|
|
56
|
+
* Plugin to enable Custom Media Queries in CSS, following
|
|
57
|
+
* the [CSS Media Queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq) specification.
|
|
58
|
+
* https://github.com/postcss/postcss-custom-media
|
|
59
|
+
*/
|
|
60
|
+
require('postcss-custom-media')({
|
|
61
|
+
importFrom: [safeResolvePath('@commercetools-frontend/application-components', 'materials/media-queries.css'), ...postcssCustomMediaPaths]
|
|
62
|
+
}),
|
|
63
|
+
/**
|
|
64
|
+
* Plugin to enable Custom Properties in CSS, following
|
|
65
|
+
* the [CSS Custom Properties](https://www.w3.org/TR/css-variables-1/) specification.
|
|
66
|
+
* https://github.com/postcss/postcss-custom-properties
|
|
67
|
+
*/
|
|
68
|
+
require('postcss-custom-properties')({
|
|
69
|
+
preserve: false,
|
|
70
|
+
importFrom: [...postcssCustomPropertiesPaths]
|
|
71
|
+
}),
|
|
72
|
+
/**
|
|
73
|
+
* Plugin to `console.log()` the messages (warnings, etc.)
|
|
74
|
+
* registered by other PostCSS plugins.
|
|
75
|
+
* https://github.com/postcss/postcss-reporter
|
|
76
|
+
*/
|
|
77
|
+
require('postcss-reporter')()]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
exports.createPostcssConfig = createPostcssConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { p as pkgJson } from './package-99e547a7.esm.js';
|
|
4
|
+
|
|
5
|
+
// This function aims to return the same result as `require.resolve`.
|
|
6
|
+
// However, resolving a path to a `.css` file does not return the real
|
|
7
|
+
// path when this file is executed within a Jest environment, because
|
|
8
|
+
// of the `identity-obj-proxy` resolver.
|
|
9
|
+
// Therefore, we trick it by resolving the package entry point and
|
|
10
|
+
// constructing the real path manually.
|
|
11
|
+
const safeResolvePath = (packageName, fileRelativePath) => {
|
|
12
|
+
const defaultPackageEntryPoint = require.resolve(packageName);
|
|
13
|
+
const _defaultPackageEntryP = defaultPackageEntryPoint.split('dist'),
|
|
14
|
+
_defaultPackageEntryP2 = _slicedToArray(_defaultPackageEntryP, 1),
|
|
15
|
+
pathToPackage = _defaultPackageEntryP2[0];
|
|
16
|
+
return path.join(pathToPackage, fileRelativePath);
|
|
17
|
+
};
|
|
18
|
+
function createPostcssConfig() {
|
|
19
|
+
let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
20
|
+
_ref$postcssImportPat = _ref.postcssImportPaths,
|
|
21
|
+
postcssImportPaths = _ref$postcssImportPat === void 0 ? [] : _ref$postcssImportPat,
|
|
22
|
+
_ref$postcssCustomMed = _ref.postcssCustomMediaPaths,
|
|
23
|
+
postcssCustomMediaPaths = _ref$postcssCustomMed === void 0 ? [] : _ref$postcssCustomMed,
|
|
24
|
+
_ref$postcssCustomPro = _ref.postcssCustomPropertiesPaths,
|
|
25
|
+
postcssCustomPropertiesPaths = _ref$postcssCustomPro === void 0 ? [] : _ref$postcssCustomPro;
|
|
26
|
+
return {
|
|
27
|
+
parser: false,
|
|
28
|
+
map: false,
|
|
29
|
+
plugins: [
|
|
30
|
+
/**
|
|
31
|
+
* Plugin to transform `@import` rules by inlining content.
|
|
32
|
+
* https://github.com/postcss/postcss-import
|
|
33
|
+
*/
|
|
34
|
+
require('postcss-import')({
|
|
35
|
+
path: postcssImportPaths
|
|
36
|
+
}),
|
|
37
|
+
/**
|
|
38
|
+
* Plugin to parse CSS and add vendor prefixes to CSS rules
|
|
39
|
+
* using values from "[Can I Use](https://caniuse.com/)".
|
|
40
|
+
* https://github.com/postcss/autoprefixer
|
|
41
|
+
*/
|
|
42
|
+
require('autoprefixer')({
|
|
43
|
+
// Enables `-ms-` prefixes for Grid Layout including some
|
|
44
|
+
// limited autoplacement support.
|
|
45
|
+
// https://github.com/postcss/autoprefixer#grid-autoplacement-support-in-ie
|
|
46
|
+
grid: 'autoplace',
|
|
47
|
+
overrideBrowserslist: process.env.NODE_ENV === 'production' ? pkgJson.browserslist.production : pkgJson.browserslist.development
|
|
48
|
+
}),
|
|
49
|
+
/**
|
|
50
|
+
* Plugin to enable Custom Media Queries in CSS, following
|
|
51
|
+
* the [CSS Media Queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq) specification.
|
|
52
|
+
* https://github.com/postcss/postcss-custom-media
|
|
53
|
+
*/
|
|
54
|
+
require('postcss-custom-media')({
|
|
55
|
+
importFrom: [safeResolvePath('@commercetools-frontend/application-components', 'materials/media-queries.css'), ...postcssCustomMediaPaths]
|
|
56
|
+
}),
|
|
57
|
+
/**
|
|
58
|
+
* Plugin to enable Custom Properties in CSS, following
|
|
59
|
+
* the [CSS Custom Properties](https://www.w3.org/TR/css-variables-1/) specification.
|
|
60
|
+
* https://github.com/postcss/postcss-custom-properties
|
|
61
|
+
*/
|
|
62
|
+
require('postcss-custom-properties')({
|
|
63
|
+
preserve: false,
|
|
64
|
+
importFrom: [...postcssCustomPropertiesPaths]
|
|
65
|
+
}),
|
|
66
|
+
/**
|
|
67
|
+
* Plugin to `console.log()` the messages (warnings, etc.)
|
|
68
|
+
* registered by other PostCSS plugins.
|
|
69
|
+
* https://github.com/postcss/postcss-reporter
|
|
70
|
+
*/
|
|
71
|
+
require('postcss-reporter')()]
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { createPostcssConfig as c };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
|
+
var path = require('path');
|
|
5
|
+
var _package = require('./package-940b0a2a.cjs.prod.js');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
10
|
+
|
|
11
|
+
// This function aims to return the same result as `require.resolve`.
|
|
12
|
+
// However, resolving a path to a `.css` file does not return the real
|
|
13
|
+
// path when this file is executed within a Jest environment, because
|
|
14
|
+
// of the `identity-obj-proxy` resolver.
|
|
15
|
+
// Therefore, we trick it by resolving the package entry point and
|
|
16
|
+
// constructing the real path manually.
|
|
17
|
+
const safeResolvePath = (packageName, fileRelativePath) => {
|
|
18
|
+
const defaultPackageEntryPoint = require.resolve(packageName);
|
|
19
|
+
const _defaultPackageEntryP = defaultPackageEntryPoint.split('dist'),
|
|
20
|
+
_defaultPackageEntryP2 = _slicedToArray(_defaultPackageEntryP, 1),
|
|
21
|
+
pathToPackage = _defaultPackageEntryP2[0];
|
|
22
|
+
return path__default["default"].join(pathToPackage, fileRelativePath);
|
|
23
|
+
};
|
|
24
|
+
function createPostcssConfig() {
|
|
25
|
+
let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
26
|
+
_ref$postcssImportPat = _ref.postcssImportPaths,
|
|
27
|
+
postcssImportPaths = _ref$postcssImportPat === void 0 ? [] : _ref$postcssImportPat,
|
|
28
|
+
_ref$postcssCustomMed = _ref.postcssCustomMediaPaths,
|
|
29
|
+
postcssCustomMediaPaths = _ref$postcssCustomMed === void 0 ? [] : _ref$postcssCustomMed,
|
|
30
|
+
_ref$postcssCustomPro = _ref.postcssCustomPropertiesPaths,
|
|
31
|
+
postcssCustomPropertiesPaths = _ref$postcssCustomPro === void 0 ? [] : _ref$postcssCustomPro;
|
|
32
|
+
return {
|
|
33
|
+
parser: false,
|
|
34
|
+
map: false,
|
|
35
|
+
plugins: [
|
|
36
|
+
/**
|
|
37
|
+
* Plugin to transform `@import` rules by inlining content.
|
|
38
|
+
* https://github.com/postcss/postcss-import
|
|
39
|
+
*/
|
|
40
|
+
require('postcss-import')({
|
|
41
|
+
path: postcssImportPaths
|
|
42
|
+
}),
|
|
43
|
+
/**
|
|
44
|
+
* Plugin to parse CSS and add vendor prefixes to CSS rules
|
|
45
|
+
* using values from "[Can I Use](https://caniuse.com/)".
|
|
46
|
+
* https://github.com/postcss/autoprefixer
|
|
47
|
+
*/
|
|
48
|
+
require('autoprefixer')({
|
|
49
|
+
// Enables `-ms-` prefixes for Grid Layout including some
|
|
50
|
+
// limited autoplacement support.
|
|
51
|
+
// https://github.com/postcss/autoprefixer#grid-autoplacement-support-in-ie
|
|
52
|
+
grid: 'autoplace',
|
|
53
|
+
overrideBrowserslist: _package.pkgJson.browserslist.production
|
|
54
|
+
}),
|
|
55
|
+
/**
|
|
56
|
+
* Plugin to enable Custom Media Queries in CSS, following
|
|
57
|
+
* the [CSS Media Queries](https://drafts.csswg.org/mediaqueries-5/#custom-mq) specification.
|
|
58
|
+
* https://github.com/postcss/postcss-custom-media
|
|
59
|
+
*/
|
|
60
|
+
require('postcss-custom-media')({
|
|
61
|
+
importFrom: [safeResolvePath('@commercetools-frontend/application-components', 'materials/media-queries.css'), ...postcssCustomMediaPaths]
|
|
62
|
+
}),
|
|
63
|
+
/**
|
|
64
|
+
* Plugin to enable Custom Properties in CSS, following
|
|
65
|
+
* the [CSS Custom Properties](https://www.w3.org/TR/css-variables-1/) specification.
|
|
66
|
+
* https://github.com/postcss/postcss-custom-properties
|
|
67
|
+
*/
|
|
68
|
+
require('postcss-custom-properties')({
|
|
69
|
+
preserve: false,
|
|
70
|
+
importFrom: [...postcssCustomPropertiesPaths]
|
|
71
|
+
}),
|
|
72
|
+
/**
|
|
73
|
+
* Plugin to `console.log()` the messages (warnings, etc.)
|
|
74
|
+
* registered by other PostCSS plugins.
|
|
75
|
+
* https://github.com/postcss/postcss-reporter
|
|
76
|
+
*/
|
|
77
|
+
require('postcss-reporter')()]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
exports.createPostcssConfig = createPostcssConfig;
|