add iframe.html

This commit is contained in:
igoradamenko
2018-02-13 23:49:21 +02:00
parent b2e9101e29
commit de76638b7b
2 changed files with 14 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>remark42</title>
<script type="text/javascript" src="/remark.js"></script>
</head>
<body>
<div id="remark42"></div>
</body>
</html>
+2
View File
@@ -4,6 +4,7 @@ const path = require('path');
const webpack = require('webpack');
const ExtractText = require('extract-text-webpack-plugin');
const Clean = require('clean-webpack-plugin');
const Copy = require('copy-webpack-plugin');
const Html = require('html-webpack-plugin');
const Provide = webpack.ProvidePlugin;
const Define = webpack.DefinePlugin;
@@ -104,6 +105,7 @@ module.exports = {
}),
new webpack.optimize.ModuleConcatenationPlugin(),
...(env === 'production' ? [new webpack.optimize.UglifyJsPlugin()] : []),
...(env === 'production' ? [new Copy(['./iframe.html'])] : []),
],
watch: env === 'dev',
watchOptions: {