Skip to content

introducing postcss slows down the save to reload speed 2 orders of magnitude #306

Closed
@samccone

Description

@samccone

Describe the bug
For a project add:

package.json

		"postcss": "^8.2.2",
		"postcss-cli": "^8.3.1",
		"postcss-import": "^14.0.0"
		"@snowpack/plugin-postcss": "^1.0.11",
		"autoprefixer": "^10.1.0",
		"svelte-preprocess": "^4.0.0",
postcss.config.js
module.exports = {
    plugins: [
        require('tailwindcss'),
        require('autoprefixer'),
    ],
  };
snowpack.config.js
plugins: [
		"@snowpack/plugin-postcss",
]

now in a svelte component do

div {
  background: red'
}

Observe that the save to reload speed go from instant to multiple seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions