Skip to content

Commit

Permalink
2.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
caiobiodere committed Oct 11, 2018
1 parent 868b059 commit f498e52
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-template-framework7-vue-webpack",
"version": "2.0.10",
"version": "2.0.11",
"description": "Cordova template with framework7, vue 2 and webpack 2.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion template_src/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
under the License.
-->
<widget id="com.example.template" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="android-minSdkVersion" value="16" />
<preference name="android-minSdkVersion" value="19" />
<preference name="DisallowOverscroll" value="true" />
<hook src="hooks/hookers.js" type="before_prepare" />
<hook src="hooks/beforedep.js" type="before_deploy" />
Expand Down
4 changes: 3 additions & 1 deletion template_src/hooks/hookers.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,14 @@ module.exports = function (ctx) {

let wpPath = webpackPath + (os.platform() === 'win32' ? '.cmd' : '')

exec(`"${wpPath}"` + (isRelease ? ' --env.release' : ''), {cwd: pRoot, maxBuffer: 1024 * 1024 * 5}, (error) => {
exec(`"${wpPath}"` + (isRelease ? ' --env.release' : ''), {cwd: pRoot, maxBuffer: 1024 * 1024 * 5}, (error, log) => {
if (error) {
console.error(`Error happened when webpack build: ${error}`);
defer.reject(new Error(`Error happened when webpack build: ${error}`))
}

console.log(`Webpack log: ${log}`);

sys.deleteFolderRecursive(targetStaticFolder, true)
sys.copyRecursiveSync(staticFolder, targetStaticFolder)

Expand Down
1 change: 1 addition & 0 deletions template_src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"framework7": "^3.4.0",
"framework7-icons": "^0.9.1",
"framework7-vue": "^3.4.0",
"material-design-icons": "^3.0.1",
"loglevel": "^1.4.1",
"vue": "^2.5.17",
"vuex": "^3.0.1"
Expand Down

0 comments on commit f498e52

Please sign in to comment.