Commit e8e2359
committed
feature #525 Allow setOutputPath to create nested directories (Lyrkan)
This PR was merged into the master branch.
Discussion
----------
Allow setOutputPath to create nested directories
This PR changes the check that is currently made when calling `setOutputPath` in order to allow the creation of nested directories (closes #189).
Note that it doesn't remove it entirely since it still prevents the creation of more than one level when the output path is located outside of the context path.
For instance, given the context is `/home/foo/bar/`:
```js
// Will work
Encore.setOutputPath('build');
// Will work, even if "/home/foo/bar/public" does not exist
Encore.setOutputPath('public/build/output');
// Will work, even if "/home/foo/public" does not exist
Encore.setOutputPath('../public');
// Will work if only "/home/foo/public/build" does not exist
// ... but **won't** work if "/home/foo/public" does not exist
Encore.setOutputPath('../public/build');
```
Commits
-------
ff200af Allow setOutputPath to create nested directories2 files changed
+68
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
138 | 150 | | |
139 | 151 | | |
140 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
31 | 57 | | |
32 | 58 | | |
33 | 59 | | |
| |||
37 | 63 | | |
38 | 64 | | |
39 | 65 | | |
40 | | - | |
| 66 | + | |
41 | 67 | | |
42 | 68 | | |
43 | 69 | | |
44 | | - | |
| 70 | + | |
45 | 71 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 72 | | |
50 | 73 | | |
51 | 74 | | |
| |||
56 | 79 | | |
57 | 80 | | |
58 | 81 | | |
| 82 | + | |
| 83 | + | |
59 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
60 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
61 | 101 | | |
62 | | - | |
63 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
64 | 105 | | |
65 | 106 | | |
66 | | - | |
67 | | - | |
| 107 | + | |
| 108 | + | |
68 | 109 | | |
69 | 110 | | |
70 | 111 | | |
71 | 112 | | |
72 | 113 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 114 | + | |
76 | 115 | | |
77 | 116 | | |
78 | 117 | | |
| |||
0 commit comments