@vonaffenfels/contentful-slate-editor 1.1.21 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/components/EditorField.js +0 -1
- package/webpack.config.js +16 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonaffenfels/contentful-slate-editor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.25",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepublish": "yarn run build",
|
|
6
6
|
"dev": "yarn run start",
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"webpack-watch-files-plugin": "^1.2.1"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@vonaffenfels/slate-editor": "^1.1.
|
|
94
|
+
"@vonaffenfels/slate-editor": "^1.1.25",
|
|
95
95
|
"webpack": "5.88.2"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "d6ebcec654136ac0aca31063f09af188ca9bed8e",
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
100
100
|
}
|
package/webpack.config.js
CHANGED
|
@@ -20,14 +20,12 @@ module.exports = ({
|
|
|
20
20
|
},
|
|
21
21
|
transpilePaths = [],
|
|
22
22
|
}) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
23
|
let fullTranspilePaths = [
|
|
26
24
|
path.resolve(__dirname, 'src'),
|
|
27
25
|
relativePathToComponents,
|
|
28
26
|
...transpilePaths,
|
|
29
27
|
slateEditorBase,
|
|
30
|
-
]
|
|
28
|
+
];
|
|
31
29
|
|
|
32
30
|
return {
|
|
33
31
|
mode: 'production',
|
|
@@ -138,6 +136,19 @@ module.exports = ({
|
|
|
138
136
|
'url-loader',
|
|
139
137
|
],
|
|
140
138
|
},
|
|
139
|
+
{
|
|
140
|
+
test: /\.svg$/,
|
|
141
|
+
resourceQuery: /url/, // include if *.svg?url
|
|
142
|
+
use: [
|
|
143
|
+
{
|
|
144
|
+
loader: 'file-loader',
|
|
145
|
+
options: {
|
|
146
|
+
name: '[name].[ext]',
|
|
147
|
+
outputPath: 'svgs/',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
141
152
|
{
|
|
142
153
|
test: /\.(woff(2)?|ttf|eot|png)(\?v=\d+\.\d+\.\d+)?$/,
|
|
143
154
|
use: [
|
|
@@ -160,9 +171,7 @@ module.exports = ({
|
|
|
160
171
|
new CleanWebpackPlugin(),
|
|
161
172
|
new HtmlWebpackPlugin({template: path.join(__dirname, 'src', 'index.html')}),
|
|
162
173
|
new MiniCssExtractPlugin({}),
|
|
163
|
-
new webpack.ProvidePlugin({
|
|
164
|
-
process: 'process/browser.js',
|
|
165
|
-
}),
|
|
174
|
+
new webpack.ProvidePlugin({process: 'process/browser.js'}),
|
|
166
175
|
],
|
|
167
176
|
resolve: {
|
|
168
177
|
extensions: ['.json', '.js', '.jsx'],
|
|
@@ -181,8 +190,6 @@ module.exports = ({
|
|
|
181
190
|
globalObject: "this",
|
|
182
191
|
path: outPath,
|
|
183
192
|
},
|
|
184
|
-
snapshot: {
|
|
185
|
-
managedPaths: [],
|
|
186
|
-
},
|
|
193
|
+
snapshot: {managedPaths: []},
|
|
187
194
|
};
|
|
188
195
|
};
|