Nouvelle cible webpack 'engine'
parent
b4bd491861
commit
d072ea0e3f
|
@ -7,4 +7,4 @@ package-lock.json
|
|||
yarn-error.log
|
||||
flow-typed/
|
||||
cypress/videos
|
||||
cypress/screenshots
|
||||
cypress/screenshots
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,3 @@
|
|||
import { analyseMany } from './traverse.js'
|
||||
|
||||
export default analyseMany
|
|
@ -24,12 +24,17 @@ module.exports = {
|
|||
embauche: ['./source/sites/embauche.gouv.fr/entry.js'],
|
||||
|
||||
// To not introduce breaking into the iframe integration, we serve simulateur.js from a 'dist' subdirectory
|
||||
'dist/simulateur': ['./source/sites/embauche.gouv.fr/iframe-script.js']
|
||||
'dist/simulateur': ['./source/sites/embauche.gouv.fr/iframe-script.js'],
|
||||
engine: ['./source/engine/index.js']
|
||||
},
|
||||
output: {
|
||||
path: path.resolve('./dist/'),
|
||||
filename: ({ chunk }) =>
|
||||
chunk.name === 'dist/simulateur' ? '[name].js' : '[name].[hash].js'
|
||||
['dist/simulateur', 'engine'].includes(chunk.name)
|
||||
? '[name].js'
|
||||
: '[name].[hash].js',
|
||||
libraryTarget: 'umd',
|
||||
library: 'Syso'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
|
Loading…
Reference in New Issue