svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more. (by sveltejs)

Svelte-preprocess Alternatives

Similar projects and alternatives to svelte-preprocess

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better svelte-preprocess alternative or higher similarity.

Suggest an alternative to svelte-preprocess

svelte-preprocess reviews and mentions

Posts with mentions or reviews of svelte-preprocess. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-27.
  • Attempting to add math rendering to mdsvex, but encountering an error
    1 project | reddit.com/r/sveltejs | 22 May 2022
    import adapter from '@sveltejs/adapter-auto'; import preprocess from 'svelte-preprocess'; import { mdsvex } from 'mdsvex'; import remarkMath from 'remark-math'; import rehypeKatex from 'rehype-katex-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { extensions: ['.svelte', '.svx', '.md'], // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [ preprocess(), mdsvex({ extensions: ['.svx', '.md'], smartypants: true, layout: { project: "./src/routes/projects/layout.svelte", post: "./src/routes/blog/layout.svelte", }, remarkPlugins: [remarkMath], rehypePlugins: [rehypeKatex], }), ], kit: { adapter: adapter({ edge: false, external: [], split: false }) } }; export default config;
  • PostCSS- NESTED --- How can i use it inside a component
    3 projects | reddit.com/r/sveltejs | 27 Apr 2022
    Have you tried https://github.com/sveltejs/svelte-preprocess
  • Creating your first Svelte App with SvelteKit
    1 project | dev.to | 24 Feb 2022
    // We have changed the adapter line to use [email protected] import adapter from '@sveltejs/[email protected]'; import preprocess from 'svelte-preprocess'; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: preprocess(), kit: { // We have changed this to point to a build directory adapter: adapter({ out: 'build' }) } }; export default config;
  • Supercharge Web DX in Svelte way
    5 projects | dev.to | 20 Feb 2022
    // svelte.config.js import preprocess from 'svelte-preprocess' import adapter from '@sveltejs/adapter-static' /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [preprocess({ postcss: true })], kit: { // I can even build php file which I can use in current project seamlessly! adapter: adapter({ fallback: 'myapp.php' }), files: { assets: 'src/assets', }, appDir: 'myapp', } } export default config
  • Always an error on build with ?. Operations
    1 project | reddit.com/r/sveltejs | 15 Jan 2022
    Do you use and svelte-preprocess?
  • SvelteKit error: "[vite] Error when evaluating SSR module" when using ssh2-promise
    2 projects | reddit.com/r/sveltejs | 5 Jan 2022
    /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: preprocess(),
  • Comment créer une application Electron avec vite
    1 project | dev.to | 9 Dec 2021
    // svelte.config.js const sveltePreprocess = require('svelte-preprocess'); module.exports = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: sveltePreprocess(), };
  • Testing Svelte components with Jest and Vite
    8 projects | dev.to | 18 Nov 2021
    We need to configure Jest to transform our files. We must explicitly set our test environment to jsdom, which we are using through Jest. Since v27 Jest's default test environment is node. I will put the configuration in a specific Jest configuration file called jest.config.json in the project root folder. If you create a configuration file called jest.config.js, Vite will complain as it expects only ESM JavaScript by default. Vite will recommend that you rename it to a ".cjs" file if you want to do it that way. You can look at the different ways to configure Jest if you are unsure about the file conventions. If you're using TypeScript, you need to configure svelte-preprocess and ts-jest also, see the svelte-jester docs for how to do that.
  • What if someone made a better svelte? Would people be interested?
    3 projects | reddit.com/r/sveltejs | 20 Oct 2021
    If you want to write pug, there are tools that allow you to do that: https://github.com/sveltejs/svelte-preprocess
  • Getting started with Svelte, Tailwind, and Nrwl NX
    7 projects | dev.to | 17 Oct 2021
    All this file does is export a configuration object for the build of our Svelte application. By default, it uses the svelte-preprocess package, which is a preprocessor for Svelte providing support for PostCSS, SCSS, TypeScript, and much more.
  • SvelteKit - How to set up global SCSS accessible to all components?
    2 projects | reddit.com/r/sveltejs | 11 Sep 2021
    import preprocess from 'svelte-preprocess' import path, { dirname } from 'path' import { fileURLToPath } from 'url' import adapter from '@sveltejs/adapter-node' const filePath = dirname(fileURLToPath(import.meta.url)) const sassPath = `${filePath}/src/lib/style/` const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: preprocess({ scss: { prependData: `@import '${sassPath}_global-imports.scss';` } }), .... } export default config
  • Make an Email Form Submission with SvelteKit
    3 projects | dev.to | 8 Sep 2021
    import adapter from '@sveltejs/adapter-vercel' import { mdsvex } from 'mdsvex' import preprocess from 'svelte-preprocess' import mdsvexConfig from './mdsvex.config.js' /** @type {import('@sveltejs/kit').Config} */ const config = { extensions: ['.svelte', ...mdsvexConfig.extensions], // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [ mdsvex(mdsvexConfig), [ preprocess({ postcss: true, }), ], ], kit: { target: '#svelte', adapter: adapter(), }, } export default config // Workaround until SvelteKit uses Vite 2.3.8 (and it's confirmed to fix the Tailwind JIT problem) const mode = process.env.NODE_ENV const dev = mode === 'development' process.env.TAILWIND_MODE = dev ? 'watch' : 'build'
  • how to replace strings with .env (dotenv-flow) · Issue #387 · sveltejs/svelte-preprocess
    1 project | reddit.com/r/sveltejs | 23 Jul 2021
  • Storing environment variables in SvelteKit
    1 project | dev.to | 5 Apr 2021
    Another solution would be to use svelte-preprocess's replace setting.
  • Simplest way to set up Svelte with Tailwind CSS
    1 project | dev.to | 17 Feb 2021
    Use the @tailwind directive to include Tailwind's base, components, and utilities styles in your App.svelte component (we will use svelte-preprocess to parse global styles):

Stats

Basic svelte-preprocess repo stats
16
1,349
8.2
12 days ago

sveltejs/svelte-preprocess is an open source project licensed under MIT License which is an OSI approved license.

Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
scoutapm.com
Find remote TypeScript jobs at our new job board 99remotejobs.com. There are 2 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.