Fixed theming issues

This commit is contained in:
n1474335 2018-11-05 12:48:22 +00:00
parent 5155d0ed56
commit 1614442bd7

View file

@ -30,6 +30,9 @@ const banner = `/**
* limitations under the License. * limitations under the License.
*/`; */`;
const vendorCSS = new ExtractTextPlugin("vendor.css");
const projectCSS = new ExtractTextPlugin("styles.css");
module.exports = { module.exports = {
plugins: [ plugins: [
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
@ -42,7 +45,8 @@ module.exports = {
raw: true, raw: true,
entryOnly: true entryOnly: true
}), }),
new ExtractTextPlugin("styles.css") vendorCSS,
projectCSS
], ],
resolve: { resolve: {
alias: { alias: {
@ -67,7 +71,7 @@ module.exports = {
}, },
{ {
test: /\.css$/, test: /\.css$/,
use: ExtractTextPlugin.extract({ use: projectCSS.extract({
use: [ use: [
{ loader: "css-loader" }, { loader: "css-loader" },
{ loader: "postcss-loader" }, { loader: "postcss-loader" },
@ -76,7 +80,7 @@ module.exports = {
}, },
{ {
test: /\.scss$/, test: /\.scss$/,
use: ExtractTextPlugin.extract({ use: vendorCSS.extract({
use: [ use: [
{ loader: "css-loader" }, { loader: "css-loader" },
{ loader: "sass-loader" } { loader: "sass-loader" }