Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can not enable scss build at angular 6.0.1 #2299

Open
13812453806 opened this issue Jun 22, 2018 · 0 comments
Open

Can not enable scss build at angular 6.0.1 #2299

13812453806 opened this issue Jun 22, 2018 · 0 comments

Comments

@13812453806
Copy link

I'm submitting a ... (check one with "x")

[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior
I want enable scss
Reference https://github.com/mgechev/angular-seed/wiki/Working-with-SASS

I create src/client/scss directory
add main.scss
body {
background-color: red;
}

in project.config.ts
add this.ENABLE_SCSS = true;

same step and scss directory and file

exec npm run build.prod.aot
at angular 5.2.9 commit id df278b8
dist/prod/css/main.css generate ok
background-color: red; Take effect

but at angular 6.0.1 commit id b43ccde
dist/prod/css/main.css not include background-color: red; css style no any effect

two commit id build success, no any build fail

Expected behavior
two commit id build success, include background-color: red; style css

Minimal reproduction of the problem with instructions
git clone code
git checkout b43ccde
create src/client/scss directory
add main.scss
body {
background-color: red;
}

in project.config.ts
add this.ENABLE_SCSS = true;

exec npm run build.prod.aot

check background-color: red; not effect

What is the motivation / use case for changing the behavior?
enable scss build

Please tell us about your environment:
Operating system : Mac osx 10.11.6
IDE: VS code 1.24.1
package manager: https://registry.npmjs.org/ npm install
HTTP server: openresty/1.9.7.5

  • Angular Seed Version: aaaaf75
    Angular seed version df278b87750a5dd17ec24f42aa84a52c34ad18e6 OK
    Angular seed version b43ccde9f2126cab03d91dd70387d67676db1b45 FAIL

  • Node: node --version =
    node --version = v9.10.1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant