Skip to content

Commit

Permalink
Removed layout assets from the starterkit.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jun 25, 2024
1 parent 9f22837 commit 7c79764
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 32 deletions.
3 changes: 0 additions & 3 deletions tests/bats/assets.subtheme.custom.bats
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ load _helper
assert_file_exists "dist/styles.editor.css"
assert_file_contains "dist/styles.editor.css" "ck-editor__editable"

assert_file_exists "dist/styles.layout.css"
assert_file_contains "dist/styles.layout.css" "ct-layout"

assert_file_exists "dist/scripts.js"
assert_file_not_exists "dist/styles-variables.js"
assert_file_not_exists "dist/styles-editor.js"
Expand Down
3 changes: 0 additions & 3 deletions tests/bats/assets.subtheme.sibling.bats
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ load _helper
assert_file_exists "dist/styles.editor.css"
assert_file_contains "dist/styles.editor.css" "ck-editor__editable"

assert_file_exists "dist/styles.layout.css"
assert_file_contains "dist/styles.layout.css" "ct-layout"

assert_file_exists "dist/scripts.js"
assert_file_not_exists "dist/styles-variables.js"
assert_file_not_exists "dist/styles-editor.js"
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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: {
Expand All @@ -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'),
},
},
},
},
Expand All @@ -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',
],
}),
],
Expand Down

0 comments on commit 7c79764

Please sign in to comment.