mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
Use relative path in snippet instead of absolute
Copy pasted the snippet tonight and got a bit of a surprise: ``` ./index.html → dist... [!] (plugin copy) Error: EROFS: read-only file system, mkdir '/dist' Error: EROFS: read-only file system, mkdir '/dist' npm ERR! code 1 npm ERR! path /Users/jlengrand/Developer/paper-dashboard npm ERR! command failed npm ERR! command sh -c rimraf dist && tsc && rollup -c rollup.config.js npm ERR! A complete log of this run can be found in: npm ERR! /Users/jlengrand/.npm/_logs/2021-02-02T23_00_23_984Z-debug.log ``` A little scary ?! :)
This commit is contained in:
committed by
GitHub
parent
a6e3d1be5d
commit
4db19b4eef
@@ -400,7 +400,7 @@ export default merge(baseConfig, {
|
||||
input: './index.html',
|
||||
plugins: [
|
||||
copy({
|
||||
targets: [{ src: 'assets/**/*', dest: '/dist' }],
|
||||
targets: [{ src: 'assets/**/*', dest: './dist' }],
|
||||
// set flatten to false to preserve folder structure
|
||||
flatten: false,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user