-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: default value of the static
option is static
#2897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
BRAKING CHANGE: default value of the `static` option is `path.resolve(process.cwd(), 'static')`, previously `process.cwd()`
lib/utils/normalizeOptions.js
Outdated
@@ -14,7 +15,7 @@ function normalizeOptions(compiler, options) { | |||
: {}; | |||
|
|||
const defaultOptionsForStatic = { | |||
directory: process.cwd(), | |||
directory: path.resolve(process.cwd(), 'static'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use check directory is exist to allow ability adding static
dynamically and working with it without problems
Codecov Report
@@ Coverage Diff @@
## master #2897 +/- ##
==========================================
+ Coverage 92.52% 92.54% +0.01%
==========================================
Files 37 37
Lines 1258 1261 +3
Branches 333 334 +1
==========================================
+ Hits 1164 1167 +3
Misses 89 89
Partials 5 5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion with sokra we decide to use public
or static
, I prefer second, there are some bad side effects to using dist
Let's merge, I think we need release soon |
For Bugs and Features; did you add new tests?
Existing
Motivation / Use-Case
fixes #2893
Breaking Changes
Yes
BREAKING CHANGE: default value of the
static
option ispath.resolve(process.cwd(), 'dist')
, previouslyprocess.cwd()
Additional Info
no