mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
19f1125520
* add global stylesheet example * fix avoiding html-escape of stylesheets * update readme * remove .gitignore
25 lines
455 B
JavaScript
25 lines
455 B
JavaScript
module.exports = {
|
|
webpack: (config, { dev }) => {
|
|
config.module.rules.push(
|
|
{
|
|
test: /\.(css|scss)/,
|
|
loader: 'emit-file-loader',
|
|
options: {
|
|
name: 'dist/[path][name].[ext]'
|
|
}
|
|
}
|
|
,
|
|
{
|
|
test: /\.css$/,
|
|
loader: 'babel-loader!raw-loader'
|
|
}
|
|
,
|
|
{
|
|
test: /\.scss$/,
|
|
loader: 'babel-loader!raw-loader!sass-loader'
|
|
}
|
|
)
|
|
return config
|
|
}
|
|
}
|