Skip to content

Commit

Permalink
Fixed theming issues
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Nov 5, 2018
1 parent 5155d0e commit 1614442
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ const banner = `/**
* limitations under the License.
*/`;

const vendorCSS = new ExtractTextPlugin("vendor.css");
const projectCSS = new ExtractTextPlugin("styles.css");

module.exports = {
plugins: [
new webpack.ProvidePlugin({
Expand All @@ -42,7 +45,8 @@ module.exports = {
raw: true,
entryOnly: true
}),
new ExtractTextPlugin("styles.css")
vendorCSS,
projectCSS
],
resolve: {
alias: {
Expand All @@ -67,7 +71,7 @@ module.exports = {
},
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
use: projectCSS.extract({
use: [
{ loader: "css-loader" },
{ loader: "postcss-loader" },
Expand All @@ -76,7 +80,7 @@ module.exports = {
},
{
test: /\.scss$/,
use: ExtractTextPlugin.extract({
use: vendorCSS.extract({
use: [
{ loader: "css-loader" },
{ loader: "sass-loader" }
Expand Down

0 comments on commit 1614442

Please sign in to comment.