Skip to content
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

proposal/modal sass compilation #915

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

oliverturner
Copy link
Contributor

@oliverturner oliverturner commented Oct 22, 2021

This PR introduces a development mode for Sass compilation that removes some of the optimisations – mini-css-extract-plugin in particular – not required for local development.

It enables the proposal for next-article here: https://github.com/Financial-Times/next-article/issues/4534

@oliverturner oliverturner requested a review from a team as a code owner October 22, 2021 12:57
Copy link
Member

@apaleslimghost apaleslimghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @oliverturner! a couple of comments but this looks great

Comment on lines +126 to +135
const devOptions = [
{
loader: require.resolve('css-loader'),
options: cssLoaderOptions
},
{
loader: require.resolve('sass-loader'),
options: sassLoaderOptions
}
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: if we're not using mini-css-extract-plugin or style-loader, how does the CSS get included by the browser?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uff... style-loader should defo be in there!

packages/dotcom-build-sass/src/index.ts Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants