Except this time, actually use the asset folder

pull/1104/head
Rick Carlino 2019-02-05 15:14:15 -06:00
parent 1574a703a2
commit 38ef561d97
1 changed files with 1 additions and 3 deletions

View File

@ -54,7 +54,7 @@ namespace :api do
intro = [ "node_modules/parcel-bundler/bin/cli.js",
cmd,
DashboardController::PARCEL_ASSET_LIST,
"--out-dir public/dist",
"--out-dir public#{DashboardController::OUTPUT_URL_PATH}",
"--public-url /dist" ].join(" ")
sh [intro, opts, DashboardController::PARCEL_CLI_OUTRO].join(" ")
end
@ -68,8 +68,6 @@ namespace :api do
desc "DELETE OLD ASSETS and build javascript/css assets via Parcel bundler"
task parcel_compile: :environment do
sh "rm -rf .cache/ node_modules/ public/dist/"
sh "npm install"
parcel "build"
end