-
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.
- Loading branch information
1 parent
49a48aa
commit 6caae83
Showing
9 changed files
with
78 additions
and
5 deletions.
There are no files selected for viewing
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
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; | ||
} |
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
liferay-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 |
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" | ||
} |
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, | ||
}), | ||
], | ||
}; |