-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: auto update client extensions samples
- Loading branch information
1 parent
2500a8a
commit 5ae299b
Showing
11 changed files
with
73 additions
and
4 deletions.
There are no files selected for viewing
Binary file added
BIN
+14.2 KB
...ent-extensions-samples/git/objects/pack/pack-5780b332948e8edd2534dc6fadcf5a581c03e477.idx
Binary file not shown.
Binary file added
BIN
+84.9 KB
...nt-extensions-samples/git/objects/pack/pack-5780b332948e8edd2534dc6fadcf5a581c03e477.pack
Binary file not shown.
Binary file added
BIN
+1.93 KB
...ent-extensions-samples/git/objects/pack/pack-5780b332948e8edd2534dc6fadcf5a581c03e477.rev
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...extension/liferay-client-extensions-samples/liferay-sample-global-css-1/assets/global.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
7 changes: 7 additions & 0 deletions
7
...nsion/liferay-client-extensions-samples/liferay-sample-global-css-1/client-extension.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...feray-sample-global-css/assets/global.css → ...ray-sample-global-css-2/assets/global.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
4 changes: 2 additions & 2 deletions
4
...y-sample-global-css/client-extension.yaml → ...sample-global-css-2/client-extension.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
15 changes: 15 additions & 0 deletions
15
...ient_extension/liferay-client-extensions-samples/liferay-sample-global-css-2/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
41 changes: 41 additions & 0 deletions
41
...extension/liferay-client-extensions-samples/liferay-sample-global-css-2/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}), | ||
], | ||
}; |