Skip to content

Commit

Permalink
chore: auto update client extensions samples
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 27, 2024
1 parent 2500a8a commit 5ae299b
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
body::before {
color: #0054f0;
content: 'Liferay Sample Global CSS 1';
display: block;
margin-left: 2rem;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
assemble:
- include: static/*.css
liferay-sample-global-css-1:
name: Liferay Sample Global CSS 1
scope: company
type: globalCSS
url: global.*.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"webpack": "5.90.1",
"webpack-cli": "5.1.4"
},
"name": "@liferay/liferay-sample-global-css",
"name": "@liferay/liferay-sample-global-css-1",
"private": true,
"scripts": {
"build": "webpack"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.logo::after {
color: #0054f0;
content: 'Liferay Sample Global CSS';
content: 'Liferay Sample Global CSS 2';
margin-left: 2rem;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
assemble:
- include: static/*.css
liferay-sample-global-css:
name: Liferay Sample Global CSS
liferay-sample-global-css-2:
name: Liferay Sample Global CSS 2
type: globalCSS
url: global.*.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"devDependencies": {
"css-loader": "6.10.0",
"mini-css-extract-plugin": "^2.8.0",
"style-loader": "3.3.4",
"webpack": "5.90.1",
"webpack-cli": "5.1.4"
},
"name": "@liferay/liferay-sample-global-css-2",
"private": true,
"scripts": {
"build": "webpack"
},
"version": "0.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/

const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const path = require('path');
const webpack = require('webpack');

const DEVELOPMENT = process.env.NODE_ENV === 'development';

module.exports = {
devtool: DEVELOPMENT ? 'source-map' : false,
entry: {
global: './assets/global.css',
},
mode: DEVELOPMENT ? 'development' : 'production',
module: {
rules: [
{
test: /\.css$/i,
use: [MiniCssExtractPlugin.loader, 'css-loader'],
},
],
},
optimization: {
minimize: !DEVELOPMENT,
},
output: {
clean: true,
path: path.resolve('static'),
},
plugins: [
new MiniCssExtractPlugin({
filename: '[name].[contenthash].css',
}),
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
};

0 comments on commit 5ae299b

Please sign in to comment.