Webpack scss Unexpected character '@'
up vote
0
down vote
favorite
This is my webpack.config.js
const ExtractTextPlugin = require('extract-text-webpack-plugin');
rules:
test: /.(sass
plugins: [
new webpack.HotModuleReplacementPlugin(),
new ExtractTextPlugin(
filename: './dist/bundle.css',
),
],
And i got this error:
Module parse failed: Unexpected character '@' (4:0)
You may need an appropriate loader to handle this file type.
> @import 'base/grid';
In css-loader docs written that it translate @import, so why do i got this error?
webpack sass
add a comment |
up vote
0
down vote
favorite
This is my webpack.config.js
const ExtractTextPlugin = require('extract-text-webpack-plugin');
rules:
test: /.(sass
plugins: [
new webpack.HotModuleReplacementPlugin(),
new ExtractTextPlugin(
filename: './dist/bundle.css',
),
],
And i got this error:
Module parse failed: Unexpected character '@' (4:0)
You may need an appropriate loader to handle this file type.
> @import 'base/grid';
In css-loader docs written that it translate @import, so why do i got this error?
webpack sass
Have you installed sass-loader (npm i -D sass-loader) ?
– llobet
Nov 13 at 8:30
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This is my webpack.config.js
const ExtractTextPlugin = require('extract-text-webpack-plugin');
rules:
test: /.(sass
plugins: [
new webpack.HotModuleReplacementPlugin(),
new ExtractTextPlugin(
filename: './dist/bundle.css',
),
],
And i got this error:
Module parse failed: Unexpected character '@' (4:0)
You may need an appropriate loader to handle this file type.
> @import 'base/grid';
In css-loader docs written that it translate @import, so why do i got this error?
webpack sass
This is my webpack.config.js
const ExtractTextPlugin = require('extract-text-webpack-plugin');
rules:
test: /.(sass
plugins: [
new webpack.HotModuleReplacementPlugin(),
new ExtractTextPlugin(
filename: './dist/bundle.css',
),
],
And i got this error:
Module parse failed: Unexpected character '@' (4:0)
You may need an appropriate loader to handle this file type.
> @import 'base/grid';
In css-loader docs written that it translate @import, so why do i got this error?
webpack sass
webpack sass
asked Nov 10 at 20:13
Mark Ambrazhevich
2917
2917
Have you installed sass-loader (npm i -D sass-loader) ?
– llobet
Nov 13 at 8:30
add a comment |
Have you installed sass-loader (npm i -D sass-loader) ?
– llobet
Nov 13 at 8:30
Have you installed sass-loader (
npm i -D sass-loader ) ?– llobet
Nov 13 at 8:30
Have you installed sass-loader (
npm i -D sass-loader ) ?– llobet
Nov 13 at 8:30
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243021%2fwebpack-scss-unexpected-character%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you installed sass-loader (
npm i -D sass-loader) ?– llobet
Nov 13 at 8:30