Skip to content

Commit

Permalink
fix html build
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed Sep 22, 2017
1 parent fe6c7ab commit 80ccd15
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vconsole",
"version": "3.0.0-dev",
"name": "vConsole",
"version": "3.0.0",
"description": "A lightweight, extendable front-end developer tool for mobile web page.",
"homepage": "https://github.com/Tencent/vConsole",
"main": "dist/vconsole.min.js",
Expand Down
2 changes: 1 addition & 1 deletion src/element/tpl_node_head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<span class="vcelm-node">&lt;{{node.tagName.toLowerCase()}}{{if (node.className || node.attributes.length)}}
<i class="vcelm-k">
{{for (var i=0; i<node.attributes.length; i++)}}
{{for (var i = 0; i < node.attributes.length; i++)}}
{{if (node.attributes[i].value !== '')}}
{{node.attributes[i].name}}="<i class="vcelm-v">{{node.attributes[i].value}}</i>"{{else}}
{{node.attributes[i].name}}{{/if}}{{/for}}</i>{{/if}}&gt;</span>
2 changes: 1 addition & 1 deletion src/network/item.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="vc-group {{actived ? 'vc-actived' : ''}}">
<dl class="vc-table-row vc-group-preview" data-xhrid="{{id}}">
<dl class="vc-table-row vc-group-preview" data-reqid="{{id}}">
<dd class="vc-table-col vc-table-col-4">{{url}}</dd>
<dd class="vc-table-col">{{method}}</dd>
<dd class="vc-table-col">{{status}}</dd>
Expand Down
6 changes: 3 additions & 3 deletions src/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ class VConsoleNetworkTab extends VConsolePlugin {

// expend group item
$.delegate($.one('.vc-log', this.$tabbox), 'click', '.vc-group-preview', function(e) {
let xhrID = this.dataset.xhrid;
let reqID = this.dataset.reqid;
let $group = this.parentNode;
if ($.hasClass($group, 'vc-actived')) {
$.removeClass($group, 'vc-actived');
that.updateRequest(xhrID, {actived: false});
that.updateRequest(reqID, {actived: false});
} else {
$.addClass($group, 'vc-actived');
that.updateRequest(xhrID, {actived: true});
that.updateRequest(reqID, {actived: true});
}
e.preventDefault();
});
Expand Down
2 changes: 1 addition & 1 deletion src/storage/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<dd class="vc-table-col">Name</dd>
<dd class="vc-table-col vc-table-col-2">Value</dd>
</dl>
{{for (var i=0; i<list.length; i++)}}
{{for (var i = 0; i < list.length; i++)}}
<dl class="vc-table-row">
<dd class="vc-table-col">{{list[i].name}}</dd>
<dd class="vc-table-col vc-table-col-2">{{list[i].value}}</dd>
Expand Down
12 changes: 6 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
module: {
loaders: [
{
test: /\.html$/, loader: 'html'
test: /\.html$/, loader: 'html?minimize=false'
},
{
test: /\.js$/, loader: 'babel'
Expand All @@ -42,11 +42,11 @@ module.exports = {
'http://opensource.org/licenses/MIT',
'Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.'
].join('\n'))
// ,new webpack.optimize.UglifyJsPlugin({
// compress: {
// warnings: false
// }
// })
,new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
// ,new ExtractTextPlugin('[name].min.css') // 将css独立打包
]
};

0 comments on commit 80ccd15

Please sign in to comment.