feat(build): add support for parsing inline sass (#1558)
This commit is contained in:
		@@ -44,7 +44,7 @@ export async function handleCreate(argv) {
 | 
				
			|||||||
  let linkResolutionStrategy = argv.links?.toLowerCase()
 | 
					  let linkResolutionStrategy = argv.links?.toLowerCase()
 | 
				
			||||||
  const sourceDirectory = argv.source
 | 
					  const sourceDirectory = argv.source
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // If all cmd arguments were provided, check if theyre valid
 | 
					  // If all cmd arguments were provided, check if they're valid
 | 
				
			||||||
  if (setupStrategy && linkResolutionStrategy) {
 | 
					  if (setupStrategy && linkResolutionStrategy) {
 | 
				
			||||||
    // If setup isn't, "new", source argument is required
 | 
					    // If setup isn't, "new", source argument is required
 | 
				
			||||||
    if (setupStrategy !== "new") {
 | 
					    if (setupStrategy !== "new") {
 | 
				
			||||||
@@ -236,6 +236,11 @@ export async function handleBuild(argv) {
 | 
				
			|||||||
        type: "css-text",
 | 
					        type: "css-text",
 | 
				
			||||||
        cssImports: true,
 | 
					        cssImports: true,
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
 | 
					      sassPlugin({
 | 
				
			||||||
 | 
					        filter: /\.inline\.scss$/,
 | 
				
			||||||
 | 
					        type: "css",
 | 
				
			||||||
 | 
					        cssImports: true,
 | 
				
			||||||
 | 
					      }),
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        name: "inline-script-loader",
 | 
					        name: "inline-script-loader",
 | 
				
			||||||
        setup(build) {
 | 
					        setup(build) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user