This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree 2 files changed +15
-8
lines changed
2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 28
28
"@ckeditor/ckeditor5-link" : " ^1.0.0-alpha.2" ,
29
29
"@ckeditor/ckeditor5-list" : " ^1.0.0-alpha.2" ,
30
30
"@ckeditor/ckeditor5-paragraph" : " ^1.0.0-alpha.2" ,
31
+ "@ckeditor/ckeditor5-theme-lark" : " ^1.0.0-alpha.2" ,
31
32
"@ckeditor/ckeditor5-upload" : " ^1.0.0-alpha.2" ,
32
33
"babel-minify-webpack-plugin" : " ^0.2.0" ,
33
- "css-loader" : " ^0.28.7" ,
34
- "node-sass" : " ^4.5.3" ,
34
+ "postcss-loader" : " ^2.0.8" ,
35
35
"raw-loader" : " ^0.5.1" ,
36
- "sass-loader" : " ^6.0.6" ,
37
36
"style-loader" : " ^0.18.2" ,
38
37
"webpack" : " ^3.6.0" ,
39
38
"webpack-sources" : " 1.0.1"
Original file line number Diff line number Diff line change 10
10
const path = require ( 'path' ) ;
11
11
const webpack = require ( 'webpack' ) ;
12
12
const { bundler } = require ( '@ckeditor/ckeditor5-dev-utils' ) ;
13
+ const { getPostCssConfig } = require ( '@ckeditor/ckeditor5-dev-utils' ) . styles ;
13
14
const CKEditorWebpackPlugin = require ( '@ckeditor/ckeditor5-dev-webpack-plugin' ) ;
14
15
const BabiliPlugin = require ( 'babel-minify-webpack-plugin' ) ;
15
16
const buildConfig = require ( './build-config' ) ;
@@ -49,16 +50,23 @@ module.exports = {
49
50
use : [ 'raw-loader' ]
50
51
} ,
51
52
{
52
- test : / \. s c s s $ / ,
53
+ test : / \. c s s $ / ,
53
54
use : [
54
- 'style-loader' ,
55
55
{
56
- loader : 'css -loader' ,
56
+ loader : 'style -loader' ,
57
57
options : {
58
- minimize : true
58
+ singleton : true
59
59
}
60
60
} ,
61
- 'sass-loader'
61
+ {
62
+ loader : 'postcss-loader' ,
63
+ options : getPostCssConfig ( {
64
+ themeImporter : {
65
+ themePath : require . resolve ( '@ckeditor/ckeditor5-theme-lark' )
66
+ } ,
67
+ minify : true
68
+ } )
69
+ } ,
62
70
]
63
71
}
64
72
]
You can’t perform that action at this time.
0 commit comments