You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are not interested in manually setting up webpack, it is recommended to scaffold a project with [Vue CLI](https://github.com/vuejs/vue-cli)instead. Projects created by Vue CLI are pre-configured with most of the common development needs working out of the box.
Vue Loader's configuration is a bit different form other loaders. In addition to a rule that applies `vue-loader`to any files with extension `.vue`, make sure to add Vue Loader's plugin to your webpack config:
**The plugin is required!** It is responsible for cloning any other rules you have defined and applying them to the corresponding language blocks in `.vue`files. For example, if you have a rule matching `/\.js$/`, it will be applied to `<script>`blocks in `.vue` files.
0 commit comments