Skip to content

Commit ee8a7de

Browse files
committed
Remove unnecessary packages and update config
1 parent 8c715ed commit ee8a7de

File tree

4 files changed

+0
-428
lines changed

4 files changed

+0
-428
lines changed

tools/docs/www/config/webpack.config.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
5555
// makes for a smoother build process.
5656
const shouldInlineRuntimeChunk = process.env.INLINE_RUNTIME_CHUNK !== 'false';
5757

58-
const imageInlineSizeLimit = parseInt(
59-
process.env.IMAGE_INLINE_SIZE_LIMIT || '10000'
60-
);
61-
6258
const STDLIB_PATH = './../../../../lib/node_modules';
6359

6460
// style files regexes
@@ -135,12 +131,6 @@ module.exports = function(webpackEnv) {
135131
].filter(Boolean);
136132
if (preProcessor) {
137133
loaders.push(
138-
{
139-
loader: require.resolve('resolve-url-loader'),
140-
options: {
141-
sourceMap: isEnvProduction && shouldUseSourceMap,
142-
},
143-
},
144134
{
145135
loader: require.resolve(preProcessor),
146136
options: {
@@ -376,17 +366,6 @@ module.exports = function(webpackEnv) {
376366
test: [ /\.html$/ ],
377367
loader: require.resolve('html-loader')
378368
},
379-
// "url" loader works like "file" loader except that it embeds assets
380-
// smaller than specified limit in bytes as data URLs to avoid requests.
381-
// A missing `test` is equivalent to a match.
382-
{
383-
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
384-
loader: require.resolve('url-loader'),
385-
options: {
386-
limit: imageInlineSizeLimit,
387-
name: 'static/media/[name].[hash:8].[ext]',
388-
},
389-
},
390369
// Process application JS with Babel.
391370
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
392371
{

tools/docs/www/package-lock.json

Lines changed: 0 additions & 233 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)