Skip to content

Commit

Permalink
fix(webpack): don't use a separator directly
Browse files Browse the repository at this point in the history
fixes: #170
  • Loading branch information
hiroppy committed Jul 30, 2019
1 parent 0814a49 commit 768c16d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/webpack/src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@ const ImageminWebpWebpackPlugin = require('imagemin-webp-webpack-plugin');
const { babel: babelrc } = require('@fusuma/configs');
const css = require('./css');

const srcDirPath = `${path.sep}src`;

const configsEntryPoint = require.resolve('@fusuma/configs');
const configsBasePath = configsEntryPoint
.split('/src')
.split(srcDirPath)
.slice(0, -1)
.join('/src');
.join(srcDirPath);
const clientEntryPoint = require.resolve('@fusuma/client');
const clientBasePath = clientEntryPoint
.split('/src')
.split(srcDirPath)
.slice(0, -1)
.join('/src');
.join(srcDirPath);
const mdxLoaderEntryPoint = require.resolve('@fusuma/mdx-loader');
const mdxLoaderBasePath = mdxLoaderEntryPoint
.split('/src')
.split(srcDirPath)
.slice(0, -1)
.join('/src');
.join(srcDirPath);

module.exports = (
type,
Expand Down

0 comments on commit 768c16d

Please sign in to comment.