Add index.css to build

This commit is contained in:
Daniel Schindler 2018-12-02 21:22:37 +01:00
parent 46f70d3630
commit a25925346a
2 changed files with 8 additions and 2 deletions

View File

@ -4,8 +4,9 @@
"serve": "webpack-dev-server"
},
"devDependencies": {
"text-encoding": "^0.7.0",
"copy-webpack-plugin": "^4.6.0",
"html-webpack-plugin": "^3.2.0",
"text-encoding": "^0.7.0",
"webpack": "^4.11.1",
"webpack-cli": "^3.1.1",
"webpack-dev-server": "^3.1.0"

View File

@ -1,6 +1,7 @@
const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: './index.js',
@ -12,6 +13,10 @@ module.exports = {
new HtmlWebpackPlugin({
template: "index.html"
}),
new CopyWebpackPlugin([
{ from: 'index.css', to: 'index.css' },
]),
// Have this example work in Edge which doesn't ship `TextEncoder` or
// `TextDecoder` at this time.
new webpack.ProvidePlugin({