xxxxxxxxxx
public class Lamp {
// Variables missing
Lamp() {
// Code missing
}
public void switch_on() {
// Code missing
}
public void switch_off() {
// Code missing
}
public static void main(String [] args) {
Lamp l = new Lamp();
l.switch_on();
l.switch_off();
l.switch_off();
}
}
xxxxxxxxxx
just add html-loader
module: {
rules: [
{
test: /\.(html)$/,
use: ['html-loader']
}
]
},
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html'
})
]
xxxxxxxxxx
module: {
rules: [
{
test: /\.(html)$/,
use: ['html-loader']
}
]
},
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html'
})
]