-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple .css to be compiled #41
Comments
@GaryJones I have committed some code on branch cs/41-multiple-css which is ready for testing. The principle is the same as for JS files, where we can define multiple output files and specific the SCSS file, destination and output style for each. Config at the moment is as follows:
To extend with custom files we would do so in our theme
Which will result in out SCSS file |
Looks great! cc @cdils |
I've not tried to override it at the theme level yet, but the |
…nal CSS files. Add baseFontSize to config with inline comment. See #41
Have you had the opportunity to test this @GaryJones and does it work the way you wanted? Are we good to merge in for a new release 1.3.0? |
Not tested yet, but I will do it now. |
…nal CSS files. Add baseFontSize to config with inline comment. See #41
@craigsimps Your post above shows that |
No, I've nothing which hasn't been committed. I've just created a new theme based on craigsimps/genesis-starter-theme and the gulpfile is as follows:
This results in
|
My mistake, it seems to be working. I'd copied the example (which has Any chance of adding in some feedback when the |
Uses `fs` to check that the source file exists before trying to compile SCSS to CSS. See #41
I'd already rebased your branch, so let's go ahead with a PR and merge :-) |
Just found one potential issue: css: {
outputStyle: 'expanded',
scss: {
'editor-style': {
src: 'develop/scss/editor-style.scss',
dest: './',
outputStyle: 'compressed'
}
}
}, My aim was to have With that extra |
Yes, it's a problem leaving the |
I think perhaps something has gone awry in previous merges / commits as it should be |
The Let's say that the outer But: css: {
scss: {
'style': {
outputStyle: 'expanded'
},
'editor-style': {
src: 'develop/scss/editor-style.scss',
dest: './',
outputStyle: 'compressed'
}
}
} ...doesn't seem to work either - |
I've set up a demo theme with the following css config:
And this has given exactly the results it should, where |
Confirmed working, thanks! |
Like we support different combinations of JavaScript files being configured to be concatenated and minified, we should allow the same for CSS files.
Right now, the
build:css
task is hard-coded aroundstyle.scss
tostyle.css
. This means it's not reusable to build files likeeditor-style.css
, oredd.css
. Having acss
configuration block might also be the start of a workaround for #3.Initially, it may be that all individual
.scss
go through the same build process, but ideally, we may want to configure the list of middleware items (i.e. only certain files pass through the RTL procedure).The text was updated successfully, but these errors were encountered: