Skip to content

Commit

Permalink
include content
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Aug 24, 2021
1 parent 3b7321e commit cc9e849
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/kbn-optimizer/src/worker/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ export function getWebpackConfig(bundle: Bundle, bundleRefs: BundleRefs, worker:
{
loader: 'sass-loader',
options: {
additionalData(loaderContext: webpack.loader.LoaderContext) {
additionalData(content: string, loaderContext: webpack.loader.LoaderContext) {
return `@import ${stringifyRequest(
loaderContext,
Path.resolve(
worker.repoRoot,
`src/core/public/core_app/styles/_globals_${theme}.scss`
)
)};\n`;
)};\n${content}`;
},
webpackImporter: false,
implementation: require('node-sass'),
Expand Down
4 changes: 2 additions & 2 deletions packages/kbn-storybook/src/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export default function ({ config: storybookConfig }: { config: Configuration })
{
loader: 'sass-loader',
options: {
additionalData(loaderContext: any) {
additionalData(content: string, loaderContext: any) {
return `@import ${stringifyRequest(
loaderContext,
resolve(REPO_ROOT, 'src/core/public/core_app/styles/_globals_v7light.scss')
)};\n`;
)};\n${content}`;
},
implementation: require('node-sass'),
sassOptions: {
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/canvas/shareable_runtime/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ module.exports = {
{
loader: 'sass-loader',
options: {
additionalData(loaderContext) {
additionalData(content, loaderContext) {
return `@import ${stringifyRequest(
loaderContext,
path.resolve(KIBANA_ROOT, 'src/core/public/core_app/styles/_globals_v7light.scss')
)};\n`;
)};\n${content}`;
},
implementation: require('node-sass'),
webpackImporter: false,
Expand Down

0 comments on commit cc9e849

Please sign in to comment.