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
 html, body, #content, #content > div
3
 html, body, #content, #content > div
4
   height 100%
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
 @import 'Generic.styl'
8
 @import 'Generic.styl'
10
 
9
 

+ 1 - 1
webpack.config.js View File

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