Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • J js-stack-from-scratch
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Verekia
  • js-stack-from-scratch
  • Issues
  • #229
Closed
Open
Issue created Jun 14, 2017 by renshenhe@renshenhe

Feature: Possible example of HMR of .css files?

I am having a little trouble setting up hot reloading when styles are changed for .scss files in development for a SSR app.

I am currently using node-sass to watch for changes of a main.scss file and generating a .css in a public folder where is rendered from the server to load the styles.

The issue with my current approach is it requires manual refresh for style changes and for me to add @import of every component's style in main.scss so node-sass does not create a .css variant of component's .scss file in the component's directory.

I am hoping to setup webpack where I can import ./style.scss in the component and should the component be used extract-text-webpack-plugin would be able to handle the conversion and add it to a single .css file. I would also hope to have it all hot-reloadable should it be possible but finding a solution have seems to elude my searches. I am fine with manually refreshing styles but hope for a better setup than my current.

Assignee
Assign to
Time tracking