Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c7951a25
Unverified
Commit
c7951a25
authored
Mar 19, 2020
by
Tobias Skarhed
Committed by
GitHub
Mar 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Storybook: Solve deployment issues (#22873)
parent
18f1d5a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
packages/grafana-ui/.storybook/webpack.config.js
+14
-0
No files found.
packages/grafana-ui/.storybook/webpack.config.js
View file @
c7951a25
const
path
=
require
(
'path'
);
const
path
=
require
(
'path'
);
const
TerserPlugin
=
require
(
'terser-webpack-plugin'
);
const
OptimizeCSSAssetsPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
);
module
.
exports
=
({
config
,
mode
})
=>
{
module
.
exports
=
({
config
,
mode
})
=>
{
config
.
module
.
rules
=
[
config
.
module
.
rules
=
[
...(
config
.
module
.
rules
||
[]),
...(
config
.
module
.
rules
||
[]),
...
@@ -74,6 +76,18 @@ module.exports = ({ config, mode }) => {
...
@@ -74,6 +76,18 @@ module.exports = ({ config, mode }) => {
],
],
});
});
config
.
optimization
=
{
nodeEnv
:
'production'
,
minimizer
:
[
new
TerserPlugin
({
cache
:
false
,
parallel
:
false
,
sourceMap
:
true
,
}),
new
OptimizeCSSAssetsPlugin
({}),
],
},
config
.
resolve
.
extensions
.
push
(
'.ts'
,
'.tsx'
,
'.mdx'
);
config
.
resolve
.
extensions
.
push
(
'.ts'
,
'.tsx'
,
'.mdx'
);
config
.
stats
=
{
config
.
stats
=
{
warningsFilter
:
/export .* was not found in/
,
warningsFilter
:
/export .* was not found in/
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment