diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.layout.scss b/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.layout.scss deleted file mode 100644 index 403d923c13..0000000000 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/assets/sass/theme.layout.scss +++ /dev/null @@ -1,9 +0,0 @@ -// -// Editor styles. -// -// stylelint-disable scss/at-import-partial-extension - -// Import only required partials to minimize CSS output. -@import 'components_combined/00-base/variables'; -@import 'components_combined/00-base/**/mixins/*.scss'; -@import 'components_combined/00-base/**/layout/layout.scss'; diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/webpack/layout_css.js b/web/themes/contrib/civictheme/civictheme_starter_kit/webpack/layout_css.js deleted file mode 100644 index 940d6922be..0000000000 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/webpack/layout_css.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Import Drupal CK Editor styles to be discoverable by the loader. - */ - -import '../assets/sass/theme.layout.scss'; diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/webpack/webpack.common.js b/web/themes/contrib/civictheme/civictheme_starter_kit/webpack/webpack.common.js index 06c8209f9b..15e3d007be 100644 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/webpack/webpack.common.js +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/webpack/webpack.common.js @@ -12,12 +12,10 @@ module.exports = { // - main: all styles used in components and Drupal theme -> styles.css // - variables: CSS variables -> styles.variables.css // - editor: nested styles used in editor -> styles.editor.css - // - layout: styles used in layout -> styles.layout.css const entries = { main: [], variables: [], editor: [], - layout: [], }; // Scan for all JS. @@ -38,9 +36,6 @@ module.exports = { // Add explicitly editor.scss entries.editor.push(path.resolve(__dirname, 'editor_css.js')); - // Add explicitly layout.scss - entries.layout.push(path.resolve(__dirname, 'layout_css.js')); - return entries; }(path.resolve(__dirname, '../components_combined/**/!(*.stories|*.component|*.min|*.test|*.script|*.utils).js'))), optimization: { @@ -61,11 +56,6 @@ module.exports = { name: 'editor', chunks: (chunk) => (chunk.name === 'editor'), }, - layout: { - test: 'css/mini-extract', - name: 'layout', - chunks: (chunk) => (chunk.name === 'layout'), - }, }, }, }, @@ -85,8 +75,6 @@ module.exports = { '../dist/scripts-variables.js.map', '../dist/scripts-editor.js', '../dist/scripts-editor.js.map', - '../dist/scripts-layout.js', - '../dist/scripts-layout.js.map', ], }), ],