webpack config file: remove snippets from templateParameters
@@ -37,17 +37,17 @@ module.exports = (env = {}) => {
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'src/index.ejs',
- templateParameters: {
- snippets: fs
- .readdirSync(path.join(__dirname, 'snippets'))
- .map(filename =>
- path.basename(filename, path.extname(filename))
- ),
- defaultSnippetName: 'fibonacci',
- defaultSnippet: fs.readFileSync(
- path.join(__dirname, 'snippets/fibonacci.py')
- )
- }
+ // templateParameters: {
+ // snippets: fs
+ // .readdirSync(path.join(__dirname, 'snippets'))
+ // .map(filename =>
+ // path.basename(filename, path.extname(filename))
+ // ),
+ // defaultSnippetName: 'fibonacci',
+ // defaultSnippet: fs.readFileSync(
+ // path.join(__dirname, 'snippets/fibonacci.py')
+ // )
+ // }
}),
new MiniCssExtractPlugin({
filename: 'styles.css'
