🌈 style(eslint): add eslint rules
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
NODE_ENV: '"development"',
|
||||
|
||||
+5
-4
@@ -1,7 +1,8 @@
|
||||
const path = require('path')
|
||||
const childProcess = require('child_process')
|
||||
const versions =
|
||||
childProcess.execSync('git rev-parse --abbrev-ref HEAD', {
|
||||
|
||||
const versions
|
||||
= childProcess.execSync('git rev-parse --abbrev-ref HEAD', {
|
||||
encoding: 'utf8',
|
||||
}) != 'HEAD\n'
|
||||
? childProcess.execSync('git rev-parse --abbrev-ref HEAD', {
|
||||
@@ -93,7 +94,7 @@ const config = {
|
||||
chunkFilename: 'css/[name].[chunkhash].css',
|
||||
},
|
||||
devServer: {
|
||||
https: true
|
||||
https: true,
|
||||
},
|
||||
publicPath: '/',
|
||||
staticDirectory: 'static',
|
||||
@@ -125,7 +126,7 @@ const config = {
|
||||
plugins: [['@tarojs/plugin-framework-react', { reactMode: 'concurrent' }]],
|
||||
}
|
||||
|
||||
module.exports = function (merge) {
|
||||
module.exports = function(merge) {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
return merge({}, config, require('./dev'))
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
NODE_ENV: '"pre"',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
NODE_ENV: '"production"',
|
||||
|
||||
Reference in New Issue
Block a user