Browse Source

webpack now properly resolves Variable.styl from tracim_lib

Skylsmoi 7 years ago
parent
commit
5cceaa308d
2 changed files with 2 additions and 3 deletions
  1. 1 2
      src/css/index.styl
  2. 1 1
      webpack.config.js

+ 1 - 2
src/css/index.styl View File

@@ -3,8 +3,7 @@ body
3 3
 html, body, #content, #content > div
4 4
   height 100%
5 5
 
6
-// @TODO Côme - 2018/02/27 - do not manually import from node_module relative path
7
-@import '../../node_modules/tracim_lib/src/css/Variable.styl'
6
+@import 'Variable.styl' // Côme - this comes from node_modules/tracim_lib
8 7
 
9 8
 @import 'Generic.styl'
10 9
 

+ 1 - 1
webpack.config.js View File

@@ -76,7 +76,7 @@ module.exports = {
76 76
     }]
77 77
   },
78 78
   resolve: {
79
-    extensions: ['.js', '.jsx']
79
+    extensions: ['.js', '.jsx', '.styl']
80 80
   },
81 81
   plugins:[
82 82
     ...[ // generic plugins always present