-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nickhu
committed
Jun 13, 2024
1 parent
d3179af
commit a6ab656
Showing
8 changed files
with
3,844 additions
and
3,802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
browser: true, | ||
}, | ||
extends: "eslint:recommended", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
const path = require("path"); | ||
const webpack = require("webpack"); | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
|
||
module.exports = { | ||
mode: "production", | ||
mode: 'production', | ||
entry: { | ||
index: "./src/index.js", | ||
extension: "./src/extension.js", | ||
index: './src/index.js', | ||
extension: './src/extension.js', | ||
}, | ||
output: { | ||
filename: "[name].js", | ||
chunkFilename: "[name].[contenthash:8].js", | ||
publicPath: "/", | ||
path: path.resolve("./dist"), | ||
globalObject: "this", | ||
libraryTarget: "umd", | ||
filename: '[name].js', | ||
chunkFilename: '[name].[contenthash:8].js', | ||
publicPath: '/', | ||
path: path.resolve('./dist'), | ||
globalObject: 'this', | ||
libraryTarget: 'umd', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(js)$/, | ||
exclude: /node_modules/, | ||
use: ["babel-loader"], | ||
use: ['babel-loader'], | ||
}, | ||
{ | ||
test: /\.css/, | ||
use: ["style-loader", "css-loader"], | ||
use: ['style-loader', 'css-loader'], | ||
}, | ||
{ | ||
test: /\.(woff2?|eot|ttf|otf|bin|png|svg|gif|jpe?g)(\?.*)?$/i, | ||
loader: "url-loader", | ||
loader: 'url-loader', | ||
options: { | ||
name: "[name].[hash:8].[ext]", | ||
name: '[name].[hash:8].[ext]', | ||
limit: 250000, | ||
}, | ||
}, | ||
], | ||
}, | ||
resolve: { | ||
extensions: [".js", ".png", ".svg", ".gif", ".jpg", ".jpeg", ".css"], | ||
extensions: ['.js', '.png', '.svg', '.gif', '.jpg', '.jpeg', '.css'], | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
DEPLOY_ENV: `"${process.env.DEPLOY_ENV || "prd"}"`, | ||
DEPLOY_ENV: `"${process.env.DEPLOY_ENV || 'prd'}"`, | ||
}), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.