mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
WIP: bundle all css into main.css with mini-css-extract. Cannot split into vendor and styles without breaking at the moment.
This commit is contained in:
parent
069d0e48c1
commit
4bf2a29070
3 changed files with 0 additions and 36 deletions
|
@ -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)$/,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue