فهرست منبع

chore: update .gitignore

Gerald 8 سال پیش
والد
کامیت
96a1c8f4ac
3فایلهای تغییر یافته به همراه4 افزوده شده و 8 حذف شده
  1. 0 4
      .eslintrc.js
  2. 1 1
      .gitignore
  3. 3 3
      scripts/webpack.conf.js

+ 0 - 4
.eslintrc.js

@@ -29,10 +29,6 @@ module.exports = {
       'js': 'never',
       'vue': 'never'
     }],
-    // allow optionalDependencies
-    'import/no-extraneous-dependencies': ['error', {
-      'optionalDependencies': ['test/unit/index.js']
-    }],
     // allow debugger during development
     'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
     'no-console': ['error', {

+ 1 - 1
.gitignore

@@ -5,4 +5,4 @@ node_modules/
 /*.crx
 /*.log
 /*.lock
-/*.json
+/stats.json

+ 3 - 3
scripts/webpack.conf.js

@@ -16,17 +16,17 @@ const definePlugin = new webpack.DefinePlugin({
 });
 
 function resolve(dir) {
-  return path.join(__dirname, '..', dir)
+  return path.join(__dirname, '..', dir);
 }
 
 const base = {
   output: {
-    path: path.resolve(DIST),
+    path: resolve(DIST),
     publicPath: '/',
     filename: '[name].js',
   },
   resolve: {
-    extensions: ['.js', '.vue', '.json'],
+    extensions: ['.js', '.vue'],
     alias: {
       src: resolve('src'),
     }