diff --git a/config/index.ts b/config/index.ts index 1c812e0..79d54de 100644 --- a/config/index.ts +++ b/config/index.ts @@ -55,6 +55,7 @@ const config = { }, sass: { data: `@import "@nutui/nutui-taro/dist/styles/variables.scss";`, + silenceDeprecations: ['import'], }, alias: { '@': join(__dirname, '..', 'src'), @@ -98,7 +99,7 @@ const config = { }, }, cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true + enable: true, // 默认为 false,如需使用 css modules 功能,则设为 true config: { namingPattern: 'module', // 转换模式,取值为 global/module generateScopedName: '[name]__[local]___[hash:base64:5]', diff --git a/config/reserve.ts b/config/reserve.ts deleted file mode 100644 index 84fb70e..0000000 --- a/config/reserve.ts +++ /dev/null @@ -1,37 +0,0 @@ -// @ts-nocheck - -module.exports = { - env: { - NODE_ENV: '"production"', - }, - mini: {}, - h5: { - /** - * WebpackChain 插件配置 - * @docs https://github.com/neutrinojs/webpack-chain - */ - // webpackChain (chain) { - // /** - // * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。 - // * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer - // */ - // chain.plugin('analyzer') - // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, []) - // /** - // * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。 - // * @docs https://github.com/chrisvfritz/prerender-spa-plugin - // */ - // const path = require('path') - // const Prerender = require('prerender-spa-plugin') - // const staticDir = path.join(__dirname, '..', 'dist') - // chain - // .plugin('prerender') - // .use(new Prerender({ - // staticDir, - // routes: [ '/pages/index/index' ], - // postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') }) - // })) - // } - }, -}; - diff --git a/package.json b/package.json index f473bfb..b35a2fe 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "jdt-user", - "version": "4.0.16", + "version": "4.0.17", "taroConfig": { - "version": "4.0.16" + "version": "4.0.17" }, "scripts": { "build:weapp": "taro build --type weapp", diff --git a/src/components/StoreList.vue b/src/components/StoreList.vue index 6bfb790..05aafb4 100644 --- a/src/components/StoreList.vue +++ b/src/components/StoreList.vue @@ -1,6 +1,6 @@