refactor: separate SimpleSwitch component using Vue SFC (#1033) (#1054)

* refactor: separate SimpleSwitch component using Vue SFC

* fix
This commit is contained in:
pa
2025-01-09 08:42:28 +09:00
committed by GitHub
parent 42e76f0d7f
commit 4751bd51fa
10 changed files with 627 additions and 250 deletions

View File

@@ -3,6 +3,7 @@ const CopyPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const { VueLoaderPlugin } = require('vue-loader');
module.exports = {
entry: {
@@ -38,6 +39,10 @@ module.exports = {
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
},
{
test: /\.pug$/,
oneOf: [
@@ -83,6 +88,7 @@ module.exports = {
timings: true
},
plugins: [
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: '[name].css'
}),