We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue init webpack demo cd demo npm i npm i -D pug pug-loader less less-loader
App.js App.pug App.less App.vue
App.vue
<template lang="pug"> include ./App.pug </template> <script src="./App.js"></script> <style lang="less" src="./App.less">
npm run dev
and then in localhost:8080/
localhost:8080/
when i change or save the App.pug file , the webpack server hot reload not work
App.pug
pug file not in watch file list?
pug
Sorry, My English is poor , I am try my best to let you know what I say.....
The text was updated successfully, but these errors were encountered:
include ./App.pug
This include is done by pug, not webpack, so webpack isn't aware of it. That'S why hot reloading can't work like that.
Try this:
<template lang="pug" src="./App.pug"> </template>
This way, vue-loader will handle the import, and webpack now knows about the file.
Sorry, something went wrong.
No branches or pull requests
CLI version: 2.8.0
操作步骤
Add files:
App.js
App.pug
App.less
App.vue
in
App.vue
and then in
localhost:8080/
when i change or save the
App.pug
file , the webpack server hot reload not workpug
file not in watch file list?Sorry, My English is poor , I am try my best to let you know what I say.....
The text was updated successfully, but these errors were encountered: