@grafana/create-plugin 5.4.0 → 5.5.0-canary.1153.af88417.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0-canary.1153.af88417.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=20"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "af884173ff2c58c1d9f408aafc61e6ef0b2f957b"
|
|
92
92
|
}
|
|
@@ -35,3 +35,15 @@ declare module '*.woff2';
|
|
|
35
35
|
declare module '*.eot';
|
|
36
36
|
declare module '*.ttf';
|
|
37
37
|
declare module '*.otf';
|
|
38
|
+
|
|
39
|
+
// CSS declarations
|
|
40
|
+
declare module '*.module.css' {
|
|
41
|
+
const classes: { [key: string]: string };
|
|
42
|
+
export default classes;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare module '*.css' {
|
|
46
|
+
const content: string;
|
|
47
|
+
export default content;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
|
9
9
|
import ESLintPlugin from 'eslint-webpack-plugin';
|
|
10
10
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
11
|
+
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
11
12
|
import path from 'path';
|
|
12
13
|
import ReplaceInFileWebpackPlugin from 'replace-in-file-webpack-plugin';
|
|
13
14
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
@@ -131,12 +132,13 @@ const config = async (env): Promise<Configuration> => {
|
|
|
131
132
|
},
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
|
-
test: /\.
|
|
135
|
-
use: [
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
test: /\.(sa|sc|c)ss$/,
|
|
136
|
+
use: [
|
|
137
|
+
env.development ? "style-loader" : MiniCssExtractPlugin.loader,
|
|
138
|
+
"css-loader",
|
|
139
|
+
"postcss-loader",
|
|
140
|
+
"sass-loader",
|
|
141
|
+
],
|
|
140
142
|
},
|
|
141
143
|
{
|
|
142
144
|
test: /\.(png|jpe?g|gif|svg)$/,
|
|
@@ -244,7 +246,7 @@ const config = async (env): Promise<Configuration> => {
|
|
|
244
246
|
extensions: ['.ts', '.tsx'],
|
|
245
247
|
lintDirtyModulesOnly: Boolean(env.development), // don't lint on start, only lint changed files
|
|
246
248
|
}),
|
|
247
|
-
] : []),
|
|
249
|
+
] : [new MiniCssExtractPlugin()]),
|
|
248
250
|
],
|
|
249
251
|
|
|
250
252
|
resolve: {
|