是否需要Webpack将SCSS转换为JavaScript?

时间:2016-10-21 18:40:16

标签: javascript css node.js sass webpack

我使用webpack用配置编译我的scss,看起来像这样:

CREATE PROCEDURE UpdateFavoriteProcess
    -- parameters for the stored procedure
    @Id                     int,
    @ProcessDescription     varchar(256),
    @Position               int
AS
BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;

    -- The update query
    UPDATE fp
    SET p.Description = @ProcessDescription, -- this line is issuing the error
        fp.Position = @Position
    FROM FavoriteProcess AS fp
    INNER JOIN Process AS p ON fp.Process_Id = p.Id
    WHERE fp.Id = @Id
END
GO

这需要我的sass并将其转换为JavaScript。这样做,我失去了browserync能够在不刷新页面的情况下注入CSS代码。有没有办法让webpack编译成普通的CSS文件,或者是通过JavaScript只用Webpack方式传递的CSS?

0 个答案:

没有答案