Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
fix(webpack): use inputDirPath to definition of $SLIDE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
euxn23 authored and hiroppy committed Nov 7, 2021
1 parent 208a94a commit 82592f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fusuma/src/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = (
} = slide;
const { js: jsPath, css: cssPath, webpack: webpackPath } = fileExtends;
const { useCache, publicPath } = build;
const { basePath, remoteOrigin, htmlBody = '', outputDirPath } = internal;
const { basePath, remoteOrigin, htmlBody = '', inputDirPath, outputDirPath } = internal;
const config = (() => {
switch (type) {
case 'production':
Expand Down Expand Up @@ -161,7 +161,7 @@ module.exports = (
NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development'),
JS_PATH: JSON.stringify(join(basePath, jsPath || '')),
CSS_PATH: JSON.stringify(join(basePath, cssPath || '')),
SLIDE_PATH: JSON.stringify(join(basePath, 'slides')),
SLIDE_PATH: JSON.stringify(inputDirPath || join(basePath, 'slides')),
URL: JSON.stringify(url),
HAS_TWITTER: JSON.stringify(sns.includes('twitter')),
TITLE: JSON.stringify(title || 'slide'),
Expand Down

0 comments on commit 82592f4

Please sign in to comment.