Skip to content

Instantly share code, notes, and snippets.

@VitorLuizC
Created July 21, 2017 14:29
Show Gist options
  • Select an option

  • Save VitorLuizC/aa804703105c83ef0b6425711402bb73 to your computer and use it in GitHub Desktop.

Select an option

Save VitorLuizC/aa804703105c83ef0b6425711402bb73 to your computer and use it in GitHub Desktop.
Exemplo pra criar os arquivos HTML
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
// ...
module: {
rules: [
{
test: /\.html$/,
use: ExtractTextPlugin.extract({
use: 'html-loader'
})
}
]
},
plugins: [
new ExtractTextPlugin('index.html')
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment