2015-06-30 12 views
6

In tutti gli esempi che ho visto, il file html entrypoint (ad esempio index.html) vive insieme a tutti gli asset creati dal webpack.Distribuzione di risorse Webpack da una sottodirectory

build/ 
    index.html 
    bundle.js 
    1.bundle.js 
    2.bundle.js 
    etc 

mi piacerebbe avere il mio html entrypoint separato dal patrimonio costruito:

index.html 
build/ 
    bundle.js 
    1.bundle.js 
    2.bundle.js 
    etc 

Questo è possibile con webpack?

+0

Vorrei aggiungere che la mia applicazione utilizza CSS con le immagini esterne e font. Quando carico i bundle da un file html nella directory padre, questi percorsi di asset si interrompono. – Pascal

risposta

Problemi correlati