1
0
Fork 0
freesewing/packages/freesewing.lab/next.config.mjs
Joost De Cock 2ea353a475 chore(fs.dev): Webpack aliases to load local code from source
These changes force webpack to load the local pacakges (like
patterns and so on) from source, rather than from a compiled bundle.
This means that the lab site will reload whenever one makes changes
to pattern code.
2022-01-24 12:34:29 +01:00

11 lines
317 B
JavaScript

import configBuilder from '../freesewing.shared/config/next.mjs'
import config from './freesewing.config.mjs'
const allPatterns = []
for (const section in config.patterns) {
for (const pattern of config.patterns[section]) {
allPatterns.push(pattern)
}
}
export default configBuilder('lab', [], allPatterns)