Skip to content

Commit

Permalink
fix(webpack): set basePath
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Jul 7, 2019
1 parent 08e4ee2 commit 1a1c71c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/webpack/src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,12 @@ module.exports = (type, { meta, slide, extends: fileExtends, internal = {}, serv
common.entry.push(path.join(basePath, jsPath));
}

if (cssPath && path.extname(cssPath) === '.css' && existsSync(cssPath)) {
common.entry.push(path.join(clientBasePath, 'src', 'utils', 'customCss.js'));
if (cssPath) {
const p = path.join(basePath, cssPath);

if (path.extname(p) === '.css' && existsSync(p)) {
common.entry.push(path.join(clientBasePath, 'src', 'utils', 'customCss.js'));
}
}
}

Expand Down

0 comments on commit 1a1c71c

Please sign in to comment.