Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

fix: don't include empty custom.css in the release #636

Merged
merged 1 commit into from
Feb 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ if (isProduction) {
} else {
outputJsName = 'app.js';
outputCssName = 'styles[extname]';
appPlugins.push(serve({
contentBase: outDir,
port: 8080,
}));
appPlugins.push(
copy([
// Copy over empty custom.css but don't overwrite in case user has customized it.
{ files: './styles/custom.css', dest: `./${outDir}/styles/`, options: { overwrite: false } },
]),
serve({
contentBase: outDir,
port: 8080,
}),
);
}

/** @type {import('rollup').RollupOptions} */
Expand Down Expand Up @@ -83,8 +89,6 @@ const config = {
{ files: './favicon.png', dest: `./${outDir}/` },
{ files: './manifest.webmanifest', dest: `./${outDir}/` },
{ files: './images/*.*', dest: `./${outDir}/images/` },
// Copy over empty custom.css but don't overwrite in case user has customized it.
{ files: './styles/custom.css', dest: `./${outDir}/styles/`, options: { overwrite: false } },
]),
...appPlugins,
],
Expand Down