File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
packages/@vue/cli-service/lib Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,6 @@ module.exports = {
2929 // explicitly transpile a dependency with this option.
3030 transpileDependencies: [/* string or regex */ ],
3131
32- // whether to preserve whitespaces between elements during template
33- // compilation. Defaults to `false` for smaller compiled code size and
34- // performance.
35- preserveWhitepsace: false ,
36-
3732 // generate sourceMap for production build?
3833 productionSourceMap: true ,
3934
@@ -48,16 +43,16 @@ module.exports = {
4843 // can also be an object of options to pass to extract-text-webpack-plugin
4944 extract: true ,
5045
51- // Enable CSS modules for all css / pre-processor files.
52- // This option does not affect *.vue files.
53- modules: false ,
54-
5546 // enable CSS source maps?
5647 sourceMap: false ,
5748
5849 // pass custom options to pre-processor loaders. e.g. to pass options to
5950 // sass-loader, use { sass: { ... } }
60- loaderOptions: {}
51+ loaderOptions: {},
52+
53+ // Enable CSS modules for all css / pre-processor files.
54+ // This option does not affect *.vue files.
55+ modules: false
6156 },
6257
6358 // use thread-loader for babel & TS in production build
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ module.exports = (api, options) => {
4848 . loader ( 'vue-loader' )
4949 . options ( {
5050 compilerOpitons : {
51- preserveWhitespace : options . preserveWhitespace
51+ preserveWhitespace : false
5252 }
5353 } )
5454
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ const schema = createSchema(joi => joi.object({
55 outputDir : joi . string ( ) ,
66 compiler : joi . boolean ( ) ,
77 transpileDependencies : joi . array ( ) ,
8- preserveWhitespace : joi . boolean ( ) ,
98 productionSourceMap : joi . boolean ( ) ,
109 parallel : joi . boolean ( ) ,
1110 devServer : joi . object ( ) ,
@@ -55,9 +54,6 @@ exports.defaults = () => ({
5554 // deps to transpile
5655 transpileDependencies : [ /* string or regex */ ] ,
5756
58- // whether to preserve whitespaces between elements
59- preserveWhitespace : false ,
60-
6157 // sourceMap for production build?
6258 productionSourceMap : true ,
6359
You can’t perform that action at this time.
0 commit comments