
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.
11 lines
317 B
JavaScript
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)
|