Parcel: Nothing happens after source code change.

Created on 28 Dec 2017  路  2Comments  路  Source: parcel-bundler/parcel

This a 馃悰 bug report.

馃帥 Configuration (.babelrc, package.json, cli command)

parcel index.html

馃 Expected Behavior

After source code change, rebuild and print log to console, then reload page in browser.

馃槸 Current Behavior

Print "Built in xxxs" after running parcel index.html

Nothing happens after source html or js files change: no message printed, no new bundle generated, no reload in browser.

index.html:

<!DOCTYPE html>
<html>
    <body>
        <div class="header">
            <h1>222</h1>
        </div>
        <script src="bricks.js"></script>
    </body>
</html>    

brick.js:

console.log('111')

馃敠 Context

馃實 Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel |1.3.1
| Node |8.9.3
| npm/Yarn |5.6.0
| Operating System |Ubuntu 16.04

Most helpful comment

Thanks @DeMoorJasper ! It worked :set backupcopy=yes in vim.

All 2 comments

This is a safe-write issue see #221

Thanks @DeMoorJasper ! It worked :set backupcopy=yes in vim.

Was this page helpful?
0 / 5 - 0 ratings