Skip to content
Snippets Groups Projects
Unverified Commit 529065ca authored by Marshall Quander's avatar Marshall Quander Committed by GitHub
Browse files

Merge pull request #491 from mozilla/small-build-fixup

Small build fixups
parents 6455e7e8 cd909d51
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@
],
"plugins": [
[ "react-intl", { "messagesDir": "./public/messages", "enforceDescriptions": false } ],
[ "transform-react-jsx-img-import" ]
"transform-react-jsx-img-import",
"transform-class-properties",
"transform-object-rest-spread"
]
}
......@@ -119,13 +119,10 @@ module.exports = (env, argv) => ({
include: [path.resolve(__dirname, "src")],
// Exclude JS assets in node_modules because they are already transformed and often big.
exclude: [path.resolve(__dirname, "node_modules")],
loader: "babel-loader",
query: {
plugins: ["transform-class-properties", "transform-object-rest-spread"]
}
loader: "babel-loader"
},
{
test: /\.scss$/,
test: /\.(scss|css)$/,
loader: ExtractTextPlugin.extract({
fallback: "style-loader",
use: [
......@@ -141,20 +138,6 @@ module.exports = (env, argv) => ({
]
})
},
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: {
loader: "css-loader",
options: {
name: "[path][name]-[hash].[ext]",
localIdentName: "[name]__[local]__[hash:base64:5]",
camelCase: true
}
}
})
},
{
test: /\.(png|jpg|gif|glb|ogg|mp3|mp4|wav|woff2|svg|webm)$/,
use: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment