Comments (7)
Compression means gzip, rar, zip etc. Why compression needed also how is related with this template?
If you asking minify, when you add --release to the command, it's automatically adds uglify js, so your javascript files become uglified ( uglify = minify + naming obfuscate ). Also everytime it minifies generated html file.
from cordova-template-framework7-vue-webpack.
cordova run browser -- --live-reload --release
i try to use this code to test my project
as you can see, when i use that code to compress, it seems to not work. but i can use the HtmlWebpackPlugin to compress html code, then these five div can display inline-block.
from cordova-template-framework7-vue-webpack.
thanks for your help, have a greate day~
from cordova-template-framework7-vue-webpack.
edit like that:
.actionBox {
display: block;
box-sizing: border-box !important;
}
.action {
box-sizing: border-box !important;
}
also inline-block
understand whitespace, so please don't add whitespace between action divs.
<div class="action">
...
</div><div class="action">
...
</div>
cordova run browser --release --live-reload
command not available. Only use --release
command for build your project for production. Samples:
cordova run browser -- --live-reload
cordova run android -- --lr
cordova build android --release
Note: -- --live-reload
same as -- --lr
. lr is shorthand usage.
from cordova-template-framework7-vue-webpack.
very helpful! but could you teach me to change the configure of webpack.config.js
?
from cordova-template-framework7-vue-webpack.
well , i got the answer:
rules: [{
test: /\.css$/,
use: [{
loader: "style-loader"
}, {
loader: "css-loader"
}]
}, {
test: /\.useable\.css$/,
use: [{
loader: "style-loader/useable"
}, {
loader: "css-loader"
}]
}, {
test: /\.js?$/,
loader: 'source-map-loader',
enforce: 'pre'
}, {
test: /\.(png|jpe?g|gif)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
}
}, {
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
}
}, {
test: /\.svg$/,
loader: 'url-loader'
}, {
test: /\.vue$/,
loader: 'vue-loader',
options: {
preserveWhitespace: false
}
}]
},
from cordova-template-framework7-vue-webpack.
use preserveWhitespace: false
in vue-loader options
from cordova-template-framework7-vue-webpack.
Related Issues (20)
- f7 components
- Version 2.3.9 - ES Module HOT 3
- overswipe event bug in any device HOT 7
- cordova build ios --release bug HOT 2
- How to update template? HOT 2
- Live reload & API requests HOT 5
- white screen on fresh template android/ios HOT 2
- webpack out file question HOT 2
- how do use admob HOT 1
- Error webpack build android release HOT 3
- platform browser on macos HOT 2
- Error for cordova build browser --release HOT 1
- Not work in Linux
- not work reload HOT 1
- How do I get to the cordova object to access plugins in this template? HOT 1
- Can't connect to livereload from android device HOT 2
- Tapable.plugin is deprecated. Use new API on `.hooks` instead HOT 1
- lazy dynamic component import not working. HOT 5
- Sourcemap can't locate the right Line when Debug.
- Noob, cannot add plugin, what am I doing wrong?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-template-framework7-vue-webpack.