mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
Merge pull request #3645 from overleaf/ae-import-config
Add config for optional modules GitOrigin-RevId: 082261eff5d505ce98dfaafe179547b312c0511b
This commit is contained in:
2
services/web/.gitignore
vendored
2
services/web/.gitignore
vendored
@@ -58,6 +58,8 @@ Gemfile.lock
|
||||
docker-shared.yml
|
||||
|
||||
config/*.coffee
|
||||
!config/settings.defaults.coffee
|
||||
!config/settings.webpack.coffee
|
||||
|
||||
modules/**/Makefile
|
||||
|
||||
|
||||
@@ -1,7 +1,18 @@
|
||||
const path = require('path')
|
||||
|
||||
// NOTE: must be set before webpack config is imported
|
||||
process.env.SHARELATEX_CONFIG = path.resolve(
|
||||
__dirname,
|
||||
'../config/settings.webpack.coffee'
|
||||
)
|
||||
|
||||
const customConfig = require('../webpack.config.dev')
|
||||
|
||||
module.exports = {
|
||||
stories: ['../frontend/stories/**/*.stories.js'],
|
||||
stories: [
|
||||
'../frontend/stories/**/*.stories.js',
|
||||
'../modules/**/stories/**/*.stories.js'
|
||||
],
|
||||
addons: ['@storybook/addon-essentials', '@storybook/addon-a11y'],
|
||||
webpackFinal: storybookConfig => {
|
||||
// Combine Storybook's webpack loaders with our webpack loaders
|
||||
|
||||
@@ -680,3 +680,8 @@ module.exports = settings =
|
||||
'th': [ 'abbr', 'headers', 'colspan', 'rowspan', 'scope', 'sorted', 'style' ]
|
||||
'tr': [ 'class' ]
|
||||
'video': [ 'alt', 'class', 'controls', 'height', 'width' ]
|
||||
|
||||
overleafModuleImports: {
|
||||
# modules to import (an empty array for each set of modules)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user