Skip to content

index.html written in same folder like bundle.js #12

@raphet

Description

@raphet
	output: {
		format: 'iife',
		name: 'app',
		file: 'public/build/bundle.js'
	},
	plugins: [
		html2({
      		template: 'src/template.html',
      		fileName: 'index.html',
      		externals: [{ file: 'build/bundle.css', pos:  'before' }]
    	}),

Structure - wanted:
/src/template.html
/public/index.html
/public/build/bundle.js
/public/build/bundle.css

Structure - given:
/src/template.html
/public/build/index.html
/public/build/bundle.js
/public/build/bundle.css

In other words, this script stores index.html in the same folder as the bundle.js but I would like to store it one folder up. How would I set this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions