Regarding the fact that I had the same problem and that you have a directory build
with webpack.base.conf.js
inside, I assume that you are using vuejs webpack templateplate as I am.
, Stylus .styl
.stylus
. , build/webpack.dev.conf.js
build/webpack.prod.conf.js
, styleLoaders
, build/utils.js
. build/webpack.base.conf.js
.
, , stylus-loader
, , stylus , cssLoaders
build/utils.js
, :
const stylusOptions = {
import: [path.resolve(__dirname, 'relative/path/to/file.styl')]
}
return {
css: generateLoaders(),
postcss: generateLoaders(),
less: generateLoaders('less'),
sass: generateLoaders('sass', { indentedSyntax: true }),
scss: generateLoaders('sass'),
stylus: generateLoaders('stylus', stylusOptions),
styl: generateLoaders('stylus', stylusOptions)
}
, , .