Notes page revamp! (#487)
* Setup wide layout * fixup! Setup wide layout * Setup new layout
This commit is contained in:
parent
92f12aad77
commit
72d0baeb75
14 changed files with 1299 additions and 412 deletions
|
|
@ -1,8 +1,8 @@
|
|||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV !== 'production';
|
||||
|
||||
|
|
@ -63,6 +63,16 @@ module.exports = {
|
|||
plugins: [
|
||||
isDevelopment && new ReactRefreshWebpackPlugin(),
|
||||
isDevelopment && new webpack.HotModuleReplacementPlugin(),
|
||||
new webpack.DefinePlugin(
|
||||
Object.fromEntries(
|
||||
Object.entries({
|
||||
ENABLE_NOTE_COLOR: process.env.ENABLE_NOTE_COLOR,
|
||||
}).map(([key, value]) => [
|
||||
`process.env.${key}`,
|
||||
JSON.stringify(value),
|
||||
])
|
||||
)
|
||||
),
|
||||
new HtmlWebpackPlugin({
|
||||
title: 'tududi',
|
||||
filename: 'index.html',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue