Created
July 21, 2017 14:29
-
-
Save VitorLuizC/aa804703105c83ef0b6425711402bb73 to your computer and use it in GitHub Desktop.
Exemplo pra criar os arquivos HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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