Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
04d81c83
Commit
04d81c83
authored
Jun 09, 2018
by
Andrew Hrdy
Browse files
CleanWebpackPlugin now correctly cleans the build directory
parent
cafdb003
Pipeline
#2523
passed with stages
in 2 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
webpack/paths.js
View file @
04d81c83
...
...
@@ -5,10 +5,10 @@ const appDirectory = fs.realpathSync(process.cwd());
const
resolveApp
=
(
relativePath
)
=>
path
.
resolve
(
appDirectory
,
relativePath
);
module
.
exports
=
{
appRoot
:
resolveApp
(
''
),
appHtml
:
resolveApp
(
'
public/index.html
'
),
appIndexJs
:
resolveApp
(
'
src/index.js
'
),
appBuild
:
resolveApp
(
'
build
'
),
appSrc
:
resolveApp
(
'
src
'
),
appDist
:
resolveApp
(
'
dist
'
),
publicPath
:
''
};
\ No newline at end of file
webpack/webpack.config.prod.js
View file @
04d81c83
...
...
@@ -42,7 +42,9 @@ module.exports = {
]
},
plugins
:
[
new
CleanWebpackPlugin
([
'
build
'
]),
new
CleanWebpackPlugin
([
paths
.
appBuild
],
{
root
:
paths
.
appRoot
}),
new
HtmlWebpackPlugin
({
inject
:
true
,
template
:
paths
.
appHtml
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment