Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Style: Support for /deep/ and >>> combinator #198

Open
wants to merge 52 commits into
base: 8.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
aa0c205
drop promise polyfill
yyx990803 Jun 15, 2016
63b3f7b
support Vue 2.0
yyx990803 Jun 15, 2016
615dded
fix scoped CSS
yyx990803 Jun 15, 2016
15c99ed
better babel warning
yyx990803 Jun 15, 2016
3914e57
fix optional parts / strict mode
yyx990803 Jun 15, 2016
e5cb32a
new test setup
yyx990803 Jun 15, 2016
0ec591d
refactor tests
yyx990803 Jun 15, 2016
3301ec7
better template error warnings
yyx990803 Jun 15, 2016
8d60723
9.0.0
yyx990803 Jun 15, 2016
5909cb9
include mkdirp as dep
yyx990803 Jun 15, 2016
9666af2
move changelog into releases
yyx990803 Jun 15, 2016
b26e25b
simplify insert-css
yyx990803 Jun 16, 2016
34830f9
more granular hot-reload
yyx990803 Jun 16, 2016
daf4294
9.0.1
yyx990803 Jun 16, 2016
13291e2
support CSS extraction
yyx990803 Jun 18, 2016
a916805
refactor compiler options
yyx990803 Jun 19, 2016
beedf57
add source map support
yyx990803 Jun 19, 2016
2e7a2f1
remove unused
yyx990803 Jun 19, 2016
b0621f9
pad output
yyx990803 Jun 19, 2016
8350490
update readme
yyx990803 Jun 19, 2016
98ec0b2
eslint
yyx990803 Jun 19, 2016
5f1cf6a
add docs for css extraction
yyx990803 Jun 19, 2016
27a7e7a
support out stream for css extraction
yyx990803 Jun 19, 2016
d391b9f
9.1.0
yyx990803 Jun 19, 2016
1b05390
Test extract css (#101)
zigomir Jun 23, 2016
1b2659a
Add the ability to specify other postcss options (#99)
Jun 24, 2016
34ccdd5
9.2.0
yyx990803 Jun 24, 2016
ab38663
add functional component warning
yyx990803 Jun 28, 2016
dc6de0b
9.2.1
yyx990803 Jun 28, 2016
cda407d
Don't make .babelrc a requirement. (#103)
zigomir Jun 30, 2016
8c5e9ed
9.2.2
yyx990803 Jun 30, 2016
68694e9
add a note about building for production
yyx990803 Jun 30, 2016
8550260
skip css and hot-reload in server mode
yyx990803 Jun 30, 2016
b527242
9.2.3
yyx990803 Jun 30, 2016
bd6c094
map all render errors to the template
yyx990803 Jul 15, 2016
a3465bb
9.2.4
yyx990803 Jul 15, 2016
6223643
add version notice
yyx990803 Sep 28, 2016
9ce0fb1
fix dep
yyx990803 Sep 29, 2016
fa235bd
include vue-template-es2015-compiler
yyx990803 Nov 12, 2016
97741fd
fix tests
yyx990803 Nov 12, 2016
357f581
9.3.0
yyx990803 Nov 12, 2016
4e9eea8
Load configuration from vue.config.js (#146)
AdamNiederer Dec 8, 2016
f77be62
Fixed Node deprecated warning (#163)
mgrinspan Dec 8, 2016
620e90e
Fix link to browserify-simple (#155)
danieldiekmeier Dec 8, 2016
f25fb22
Fix errors with scoped modules (#154)
danieldiekmeier Dec 8, 2016
1c2dce7
use hash-sum for module id generation (#160)
gzzhanghao Dec 8, 2016
79793ef
Parse babelrc with json5 (#161)
gzzhanghao Dec 8, 2016
6c518d5
Remove listener leading to memory leak (#156)
danieldiekmeier Dec 8, 2016
80e168a
9.4.0
yyx990803 Dec 8, 2016
6992fc7
Fix: invalid warning about babel (#183)
mysticatea Mar 9, 2017
8d3159f
9.4.1
yyx990803 Mar 9, 2017
0bcabf1
Update README.md
LinusBorg Dec 25, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more granular hot-reload
  • Loading branch information
yyx990803 committed Jun 16, 2016
commit 34830f98da82c5f48397f45baf10eebd9d019a6e
9 changes: 7 additions & 2 deletions lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ compiler.compile = function (content, filePath, cb) {
.catch(cb)

function mergeParts () {
// check whether each part has changed
// check whether script/template has changed
var prevParts = resolvedPartsCache[id] || {}
resolvedPartsCache[id] = resolvedParts
var scriptChanged = resolvedParts.script !== prevParts.script
Expand Down Expand Up @@ -133,7 +133,12 @@ compiler.compile = function (content, filePath, cb) {
' hotAPI.createRecord("' + id + '", __vue__options__)\n' +
' } else {\n' +
// update
' hotAPI.reload("' + id + '", __vue__options__)\n' +
(scriptChanged
? ' hotAPI.reload("' + id + '", __vue__options__)\n'
: templateChanged
? ' hotAPI.rerender("' + id + '", __vue__options__)\n'
: ''
) +
' }\n' +
'})()}'
}
Expand Down