Skip to content

Commit 9098b9c

Browse files
Merge branch 'master' into widget_html
2 parents dcd3fcd + 41ceb50 commit 9098b9c

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

inst/templates/input_r.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#'
33
#' <Add Description>
44
#'
5-
#' @importFrom shiny restoreInput
65
#' @importFrom reactR createReactShinyInput
76
#' @importFrom htmltools htmlDependency tags
87
#'

inst/templates/package.json.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"@babel/core": "^7.2.0",
1010
"babel-loader": "^8.0.4",
1111
"@babel/preset-env": "^7.2.0",
12-
"@babel/preset-react": "^7.0.0"
12+
"@babel/preset-react": "^7.0.0",
13+
"css-loader": "^5.0.1",
14+
"style-loader": "^2.0.0"
1315
}
1416
}

inst/templates/webpack.config.js.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module.exports = {
44
mode: 'development',
55
entry: path.join(__dirname, 'srcjs', '${name}.jsx'),
66
output: {
7-
path: path.join(__dirname, 'inst', 'www', '${package}', '${name}'),
87
path: path.join(__dirname, '${outputPath}'),
98
filename: '${name}.js'
109
},
@@ -16,6 +15,11 @@ module.exports = {
1615
options: {
1716
presets: ['@babel/preset-env', '@babel/preset-react']
1817
}
18+
},
19+
// For CSS so that import "path/style.css"; works
20+
{
21+
test: /\.css$/,
22+
use: ['style-loader', 'css-loader']
1923
}
2024
]
2125
},

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,9 +3109,9 @@ locate-path@^3.0.0:
31093109
path-exists "^3.0.0"
31103110

31113111
lodash@^4.17.13, lodash@^4.17.5, lodash@^4.5.0:
3112-
version "4.17.15"
3113-
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
3114-
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
3112+
version "4.17.19"
3113+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
3114+
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
31153115

31163116
log4js@^3.0.0:
31173117
version "3.0.6"

0 commit comments

Comments
 (0)