Skip to content

Commit

Permalink
Merge pull request #1 from zongzheng123/dev
Browse files Browse the repository at this point in the history
merge dev
  • Loading branch information
zongzheng123 authored Dec 21, 2023
2 parents 2e2659e + 8982a5a commit 549544c
Show file tree
Hide file tree
Showing 7 changed files with 22,933 additions and 701 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ typings/
# nuxt.js build output
.nuxt

# # Nuxt generate <--- comment
# # Nuxt generate <--- comment
# dist

# vuepress build output
Expand All @@ -94,3 +94,4 @@ sw.*

# personal notes files
.notes
.vscode/
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@
"editor.wordBasedSuggestions": "off",
},
"todo-tree.tree.showBadges": true,
}
"i18n-ally.localesPaths": [
"i18n"
],
}
22 changes: 18 additions & 4 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// import { webpack } from 'webpack'
import colors from 'vuetify/es5/util/colors'
import UglifyjsWebpackPlugin from 'uglifyjs-webpack-plugin'

const development = process.env.NODE_ENV !== 'production'

Expand Down Expand Up @@ -211,9 +212,18 @@ export default {
port: '8000', // default: 3000
},


vue: {
config: {
productionTip: false,
devtools: true
}
},

// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
publicPath: development ? '/splatter/' : '/',
// devtools: development,
// TODO: read about this to fix it.
// plugins: [
// new webpack.ProvidePlugin({
Expand All @@ -232,13 +242,17 @@ export default {
// }),
// ],
extend(config, ctx) {
config.module.rules.push({
exclude: /(node_modules)/,
})
config.optimization.minimizer = [new UglifyjsWebpackPlugin({
uglifyOptions: {
compress: {
// if in production mode. remove all console functions besides console.error
pure_funcs: development ? [] : ['console.log', 'console.info', 'console.debug', 'console.warn'],
}
}
})]
config.module.rules.push({
test: /\.(c|m)?jsx?$/i,
include: [/node_modules.*?(@0xsquid)|(cosmjs-types)|(ethers)|(@cosmjs)/],
// exclude: /node_modules\/ethers\/lib.esm\/providers\/provider-browser.js/,
use: {
loader: 'babel-loader',
options: {
Expand Down
Loading

0 comments on commit 549544c

Please sign in to comment.