Skip to content

Commit

Permalink
Revert "Set public path to match the base config options for mini css…
Browse files Browse the repository at this point in the history
… loader (#316)" (#323)

This reverts commit 9bad4bc.
  • Loading branch information
agubler committed Sep 20, 2019
1 parent d416f2b commit e0838de
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,6 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
}
};

const miniCssExtractLoader: any = {
loader: MiniCssExtractPlugin.loader,
options: {
publicPath: args.base === undefined ? '/' : args.base
}
};

const postcssPresetConfig = {
browsers: isLegacy ? ['last 2 versions', 'ie >= 10'] : ['last 2 versions'],
insertBefore: {
Expand All @@ -320,7 +313,7 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
};

const postCssModuleLoader = [
miniCssExtractLoader,
MiniCssExtractPlugin.loader,
'@dojo/webpack-contrib/css-module-decorator-loader',
{
loader: 'css-loader',
Expand All @@ -335,7 +328,7 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
];

const cssLoader = [
miniCssExtractLoader,
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
Expand Down Expand Up @@ -642,7 +635,7 @@ export default function webpackConfigFactory(args: any): webpack.Configuration {
test: /\.css$/,
include: /.*(\/|\\)node_modules(\/|\\).*/,
use: [
miniCssExtractLoader,
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
Expand Down

0 comments on commit e0838de

Please sign in to comment.