Skip to content

Commit 7402077

Browse files
authored
docs: fix mistakes in README (#1744) [skip ci]
1 parent 55a66f3 commit 7402077

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ In a nutshell, the combination of webpack and `vue-loader` gives you a modern, f
107107
4. For the `<script>` block, this is pretty much it. For `<template>` and `<style>` blocks though, a few extra tasks need to be performed:
108108
109109
- We need to compile the template using the Vue template compiler;
110-
- We need to post-process the CSS in `<style scoped>` blocks, **after** `css-loader` but **before** `style-loader`.
110+
- We need to post-process the CSS in `<style scoped>` blocks, **before** `css-loader`.
111111
112112
Technically, these are additional loaders (`src/templateLoader.ts` and `src/stylePostLoader.ts`) that need to be injected into the expanded loader chain. It would be very complicated if the end users have to configure this themselves, so `VueLoaderPlugin` also injects a global [Pitching Loader](https://webpack.js.org/api/loaders/#pitching-loader) (`src/pitcher.ts`) that intercepts Vue `<template>` and `<style>` requests and injects the necessary loaders. The final requests look like the following:
113113
114114
``` js
115115
// <template lang="pug">
116-
import 'vue-loader/template-loader!pug-loader!source.vue?vue&type=template'
116+
import 'vue-loader/template-loader!pug-loader!vue-loader!source.vue?vue&type=template'
117117
118118
// <style scoped lang="scss">
119-
import 'style-loader!vue-loader/style-post-loader!css-loader!sass-loader!vue-loader!source.vue?vue&type=style&index=1&scoped&lang=scss'
119+
import 'style-loader!css-loader!vue-loader/style-post-loader!sass-loader!vue-loader!source.vue?vue&type=style&index=1&scoped&lang=scss'
120120
```

0 commit comments

Comments
 (0)