Skip to content

Commit

Permalink
fixed themes loader error (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored and mbarto committed Mar 14, 2017
1 parent 0a0fbf9 commit b694b05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const themeEntries = () => {
var files = glob.sync(globPath);
return files.reduce((res, curr) => {
var finalRes = res || {};
finalRes["themes/" + path.basename(curr, path.extname(curr))] = `${curr}/theme.less`;
finalRes["themes/" + path.basename(curr, path.extname(curr))] = path.join(__dirname, "web", "client", "themes", `${path.basename(curr, path.extname(curr))}`, "theme.less");
return finalRes;
}, {});

Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = {
},
{
test: /\.less$/,
exclude: /themes\/.+\.less$/,
exclude: /themes[\\\/]?.+\.less$/,
use: [{
loader: 'style-loader'
}, {
Expand All @@ -63,7 +63,7 @@ module.exports = {
}]
},
{
test: /themes\/.+\.less$/,
test: /themes[\\\/]?.+\.less$/,
use: extractThemesPlugin.extract({
fallback: 'style-loader',
use: ['css-loader', 'less-loader']
Expand Down

0 comments on commit b694b05

Please sign in to comment.