From 4bf2a29070c9035922c10b9e639f94f40a91f052 Mon Sep 17 00:00:00 2001 From: d98762625 Date: Fri, 1 Feb 2019 13:45:47 +0000 Subject: [PATCH] WIP: bundle all css into main.css with mini-css-extract. Cannot split into vendor and styles without breaking at the moment. --- package-lock.json | 12 ------------ src/core/Recipe.mjs | 1 - webpack.config.js | 23 ----------------------- 3 files changed, 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index 21db706..16e9a42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4622,18 +4622,6 @@ } } }, - "extract-text-webpack-plugin": { - "version": "4.0.0-beta.0", - "resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.0-beta.0.tgz", - "integrity": "sha512-Hypkn9jUTnFr0DpekNam53X47tXn3ucY08BQumv7kdGgeVUBLq3DJHJTi6HNxv4jl9W+Skxjz9+RnK0sJyqqjA==", - "dev": true, - "requires": { - "async": "^2.4.1", - "loader-utils": "^1.1.0", - "schema-utils": "^0.4.5", - "webpack-sources": "^1.1.0" - } - }, "extract-zip": { "version": "1.6.7", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz", diff --git a/src/core/Recipe.mjs b/src/core/Recipe.mjs index 5de8dd1..4b67427 100755 --- a/src/core/Recipe.mjs +++ b/src/core/Recipe.mjs @@ -4,7 +4,6 @@ * @license Apache-2.0 */ -import OpModules from "./config/modules/OpModules"; import OperationConfig from "./config/OperationConfig.json"; import OperationError from "./errors/OperationError"; import Operation from "./Operation"; diff --git a/webpack.config.js b/webpack.config.js index 8406e6f..137cf66 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,5 @@ const webpack = require("webpack"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); - const path = require("path"); /** @@ -32,13 +31,6 @@ const banner = `/** * limitations under the License. */`; -// const vendorCSS = new MiniCssExtractPlugin({ -// filename: "[name].css", -// }); -// const projectCSS = new MiniCssExtractPlugin({ -// filename: "styles.css", -// chunkFileName: "styles.css", -// }); module.exports = { plugins: [ @@ -57,7 +49,6 @@ module.exports = { }), new MiniCssExtractPlugin({ filename: "[name].css", - chunkFilename: "[id].css", }), ], resolve: { @@ -71,8 +62,6 @@ module.exports = { // styles: { // name: "styles", // test: /\.css$/, - // // test: (module,c,entry = 'foo') => module.constructor.name === 'CssModule' && recursiveIssuer(m) === entry, - // chunks: "all", // enforce: true // }, @@ -113,12 +102,6 @@ module.exports = { "css-loader", "postcss-loader", ] - // use: projectCSS.extract({ - // use: [ - // { loader: "css-loader" }, - // { loader: "postcss-loader" }, - // ] - // }) }, { test: /\.scss$/, @@ -127,12 +110,6 @@ module.exports = { "css-loader", "sass-loader", ] - // use: vendorCSS.extract({ - // use: [ - // { loader: "css-loader" }, - // { loader: "sass-loader" } - // ] - // }) }, { test: /\.(ico|eot|ttf|woff|woff2)$/,