Skip to content

Commit

Permalink
chore(dev-env): Remove css inclusion on packaged build (#374)
Browse files Browse the repository at this point in the history
Remove the scss import to not be parsed

Fix #372
Close #374
  • Loading branch information
netil authored Apr 11, 2018
1 parent 72864c5 commit 2a0ee67
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions config/webpack.config.packaged.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const merge = require("webpack-merge");
const webpack = require("webpack");
const StringReplacePlugin = require("string-replace-webpack-plugin");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
const uglifyConfig = require("./uglify");
const banner = require("./banner");
Expand All @@ -13,11 +14,13 @@ const config = {
module: {
rules: [
{
test: /\.scss$/,
use: [
{loader: "css-loader"},
{loader: "sass-loader"}
],
test: /(core\.js)$/,
loader: StringReplacePlugin.replace({
replacements: [{
pattern: /import \"\.\/scss\/main.scss\";/ig,
replacement: () => ""
}]
})
}
],
},
Expand Down

0 comments on commit 2a0ee67

Please sign in to comment.