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
b8c4aa39
Unverified
Commit
b8c4aa39
authored
May 14, 2018
by
Marcus Efraimsson
Committed by
GitHub
May 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11926 from grafana/davkal/fix-phantomjs-render
Use babel and hot loader only in yarn start
parents
65f9970a
dd66cbc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
14 deletions
+24
-14
scripts/webpack/webpack.dev.js
+24
-14
No files found.
scripts/webpack/webpack.dev.js
View file @
b8c4aa39
...
...
@@ -31,11 +31,24 @@ const entries = HOT ? {
vendor
:
require
(
'./dependencies'
),
};
const
output
=
HOT
?
{
path
:
path
.
resolve
(
__dirname
,
'../../public/build'
),
filename
:
'[name].[hash].js'
,
publicPath
:
"/public/build/"
,
}
:
{
path
:
path
.
resolve
(
__dirname
,
'../../public/build'
),
filename
:
'[name].[hash].js'
,
// Keep publicPath relative for host.com/grafana/ deployments
publicPath
:
"public/build/"
,
};
module
.
exports
=
merge
(
common
,
{
devtool
:
"cheap-module-source-map"
,
entry
:
entries
,
output
:
output
,
resolve
:
{
extensions
:
[
'.scss'
,
'.ts'
,
'.tsx'
,
'.es6'
,
'.js'
,
'.json'
,
'.svg'
,
'.woff2'
,
'.png'
],
},
...
...
@@ -66,23 +79,20 @@ module.exports = merge(common, {
{
test
:
/
\.
tsx
?
$/
,
exclude
:
/node_modules/
,
use
:
[
{
loader
:
'babel-loader'
,
options
:
{
use
:
{
loader
:
'awesome-typescript-loader'
,
options
:
{
useCache
:
true
,
useBabel
:
HOT
,
babelOptions
:
{
babelrc
:
false
,
plugins
:
[
'syntax-dynamic-import'
,
'react-hot-loader/babel'
,
]
,
}
,
'react-hot-loader/babel'
]
}
},
{
loader
:
'awesome-typescript-loader'
,
options
:
{
useCache
:
true
,
},
}
]
}
},
require
(
'./sass.rule.js'
)({
sourceMap
:
true
,
minimize
:
false
,
preserveUrl
:
HOT
...
...
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