2016-09-18 14 views
5

मैं संसाधनों को बंडल करने के लिए वेबपैक का उपयोग कर रहा हूं। वर्तमान में यह दोनों सीएसएस और जेएस फ़ाइलों को बंडल.जेएस नामक एक अलग फ़ाइल में बंडल करता है। मैं HTML फ़ाइल में जेएस और सीएसएस एम्बेडेड इनलाइन दोनों कैसे बना सकता हूं?वेबपैक के साथ इनलाइन जावास्क्रिप्ट और सीएसएस

import HtmlWebpackPlugin from 'html-webpack-plugin'; 
import {HotModuleReplacementPlugin} from 'webpack'; 

export default { 
    entry: {app: './test/dev'}, 
    module: { 
    loaders: [ 
     {test: /\.js/, loader: 'babel-loader', exclude: /node_modules/}, 
     {test: /\.scss$/, loader: 'style!css!sass'} 
    ] 
    }, 
    plugins: [new HotModuleReplacementPlugin(), new HtmlWebpackPlugin()], 
    devtool: 'eval-source-map' 
}; 
+0

आप एक समाधान मिला? –

+1

मैं इसे हल करने के लिए grunt-processhtml https://github.com/dciccale/grunt-processhtml का उपयोग कर रहा हूं। – VJAI

उत्तर

संबंधित मुद्दे