caiobiodere / cordova-template-framework7-vue-webpack

Framework7 - Vue - Webpack Cordova Template with Webpack Dev Server and Hot Module Replacement
Apache License 2.0
621 stars 154 forks source link

STATIC FOLDER - files content #125

Closed Bek81 closed 6 years ago

Bek81 commented 6 years ago

Hi, I tried to insert a sub directory called "experience" in the "src/static" folder. Its structure is like in the screenshot:

screen shot 2018-08-20 at 11 08 33

I run with the command: cordova run browser -- --lr

When I try to modify one of the static files (index.html, css/default.css, js/default.js), the contents of the modified file are completely deleted.

How can I solve the issue? Do I have to change the configuration of the "webpack.config.js" file? How?

Thanks and regards.

Benedetto

Bek81 commented 6 years ago

Please, can you help me?

caiobiodere commented 6 years ago

Hi @Bek81 I will try this tonight

Bek81 commented 6 years ago

Hi @caiobiodere , do you have any news for us?

caiobiodere commented 6 years ago

Hi @Bek81 I fixed your problem check using this release:

https://github.com/caiobiodere/cordova-template-framework7-vue-webpack/releases/tag/2.0.9

Bek81 commented 6 years ago

Hi @caiobiodere , I have updated (according to the release) the file "hooks/hookers.js"; I don't think there was anything else to update. Now almost everything seems to work; there is only one thing that seems wrong to me: I add the line of code console.log('fix test'); to the file "src/static/experience/js/default.js". The contents of the file are not deleted. The contents are correctly copied to the file in the "www" folder (root). The file is not updated in the "www/static" subfolder of the "platforms/browser.

Should not everything happen automatically?

Thanks

caiobiodere commented 6 years ago

Hi, @Bek81 for running with live-reload you just need to have those files in the root folder.

Bek81 commented 6 years ago

Yes, ok. So when I build, the static folder is copied to the platform. right?

caiobiodere commented 6 years ago

Yes, correctly

Bek81 commented 6 years ago

Thanks a lot!