Skip to content

Commit

Permalink
Backing down to webpack-cli 3.3.12 until webpack/webpack-cli#1939 is …
Browse files Browse the repository at this point in the history
…merged and released
  • Loading branch information
marques-work committed Oct 15, 2020
1 parent fb3b02e commit 25ed9fb
Show file tree
Hide file tree
Showing 3 changed files with 585 additions and 2,130 deletions.
4 changes: 2 additions & 2 deletions server/rails.gradle
Expand Up @@ -185,7 +185,7 @@ task compileAssetsDev(type: YarnRunTask) {
workingDir = project.railsRoot
destinationDir = project.file("${project.railsRoot}/public/assets/webpack")

yarnCommand = ['webpack-dev', '--env', "outputDir=${destinationDir.toPath().toString()}", '--env', "licenseReportFile=${ext.licenseReportFile}"]
yarnCommand = ['webpack-dev', "--env.outputDir", destinationDir.toPath().toString(), '--env.licenseReportFile', ext.licenseReportFile]

source(project.file("${project.railsRoot}/webpack"))
source(project.file("${project.railsRoot}/vendor/assets"))
Expand All @@ -207,7 +207,7 @@ task compileAssetsWebpackProd(type: YarnRunTask) {

workingDir = project.railsRoot
destinationDir = project.file("${project.buildDir}/webpack-assets")
yarnCommand = ['webpack-prod', '--env', "outputDir=${destinationDir.toPath().toString()}", '--env', "licenseReportFile=${ext.licenseReportFile}"]
yarnCommand = ['webpack-prod', "--env.outputDir", destinationDir.toPath().toString(), '--env.licenseReportFile', ext.licenseReportFile]
}

task compileRailsAssets(type: ExecuteUnderRailsTask) {
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/webapp/WEB-INF/rails/package.json
Expand Up @@ -136,6 +136,6 @@
"url-loader": "^4.1.1",
"webpack": "^4.44.2",
"webpack-build-notifier": "^2.1.0",
"webpack-cli": "^4.0.0"
"webpack-cli": "^3.3.12"
}
}

0 comments on commit 25ed9fb

Please sign in to comment.