diff --git a/examples/todomvc/package.json b/examples/todomvc/package.json index 806119cdb..31461e15e 100644 --- a/examples/todomvc/package.json +++ b/examples/todomvc/package.json @@ -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" diff --git a/examples/todomvc/webpack.config.js b/examples/todomvc/webpack.config.js index f15dc6b56..54b5b27a0 100644 --- a/examples/todomvc/webpack.config.js +++ b/examples/todomvc/webpack.config.js @@ -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({