Set up vue+webpack manually and GG before entering the door.

problem description

has been using vue-cli before, but now I want to do it manually and set up my own environment to run, which can be regarded as a learning process. However, I TM did not expect to start GG ah!
this script is not what I want at all!

the environmental background of the problems and what methods you have tried

if you don"t have much to say, the picture above:

Elements:

I"m desperate. What"s going on? Is there a boss who can explain.

Aug.13,2021

your html is not used by webpack


I took care of it myself.
is the problem of command configuration in my package.json .

I always use npm start . Last night, I used npm run build , and then opened html and found that it worked!
shit, I suspect that there is a command problem with start configuration, so delete the package file under the build folder,
and then run npm start , build folder. That is to say, the command webpack-dev-server will not help me pack.
mentally retarded.

well, I really SB. publicPath is not configured. After configuring it correctly, the contents of the modified file can be updated to the page in real time. Grass, eat the loss of no skills.

Menu