1.0.5 • Published 7 years ago

postcss-import-replace v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

##postcss-import-replace

webpack 配置

npm install postcss-import-replace --save-dev

// postcss
var importreplace = require('postcss-import-replace');

postcss: function(webpack) {
    var option = {
        atImport: {
            addDependencyTo: webpack
        }
    };
    return [
        atImport(option.atImport),
        precss,
        autoprefixer
    ];
}

// loaders
loaders: [
    {
        test: /\.duss$/,
        loaders: [
            'postcss-loader'
        ]
    }
]

// postcss
postcss: function (webpack) {
    var option = {
        importreplace: {
            path: '../../../../../../app/components'
        }
    };
    return [
        importreplace(option.importreplace)
    ];
}
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago