Skip to content

Commit

Permalink
fix(webpack): more require.resolves needed
Browse files Browse the repository at this point in the history
  • Loading branch information
denolfe committed Nov 24, 2020
1 parent 6fcf4eb commit 924eb1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/webpack/getWebpackDevConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default (config: Config): Configuration => {
let webpackConfig: Configuration = {
entry: {
main: [
'webpack-hot-middleware/client',
require.resolve('webpack-hot-middleware/client'),
path.resolve(__dirname, '../admin'),
],
},
Expand Down Expand Up @@ -44,7 +44,7 @@ export default (config: Config): Configuration => {
require.resolve('style-loader'),
require.resolve('css-loader'),
{
loader: 'postcss-loader',
loader: require.resolve('postcss-loader'),
options: {
postcssOptions: {
plugins: [require.resolve('postcss-preset-env')],
Expand Down
2 changes: 1 addition & 1 deletion src/webpack/getWebpackProdConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default (config: Config): Configuration => {
MiniCSSExtractPlugin.loader,
require.resolve('css-loader'),
{
loader: 'postcss-loader',
loader: require.resolve('postcss-loader'),
options: {
postcssOptions: {
plugins: [
Expand Down

0 comments on commit 924eb1d

Please sign in to comment.